removed unneeded functions for allocating/freeing odf_dentry_info's
authorYiannis Pericleous <yiannos@loki.fsl.cs.sunysb.edu>
Tue, 29 May 2007 16:14:13 +0000 (12:14 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:41 +0000 (19:02 -0400)
fs/unionfs/odf.c
fs/unionfs/odf.h

index ad395d75cd0e8dc4cb5e360ede216d470f38c2f0..66cfca72e59ff7518d7da5c0e3f667777d18c7ae 100644 (file)
@@ -1977,41 +1977,6 @@ out:
        kfree(branch_entry);
        return options;
 }
-/*
- * Allocates an odi and fills it with inode and dentry
- */
-struct odf_dentry_info *odf_alloc_info(struct odf_sb_info *osi, struct dentry *odf_dentry)
-{
-       struct odf_dentry_info *odi =
-                       kzalloc(sizeof(struct odf_dentry_info),GFP_KERNEL);
-       odi->whiteout = __odf_is_wh(osi, odf_dentry);
-       odi->opaque = __odf_get_opaque(odf_dentry->d_inode);
-       odi->dentry = odf_dentry;
-       dget(odf_dentry);
-       return odi;
-}
-struct odf_dentry_info *odf_fill_info(struct odf_dentry_info *odi, struct odf_sb_info *osi, struct dentry *odf_dentry)
-{
-       if (!odi)
-               return odf_alloc_info(osi, odf_dentry);
-       odi->whiteout = __odf_is_wh(osi, odf_dentry);
-       odi->opaque = __odf_get_opaque(odf_dentry->d_inode);
-       dget(odf_dentry);
-       dput(odi->dentry);
-       odi->dentry = odf_dentry;
-       return odi;
-}
-
-/*
- * Clears the odf_info data
- */
-void odf_put_info(struct odf_dentry_info *odi)
-{
-       if (!odi)
-               return;
-       dput(odi->dentry);
-       kfree(odi);
-}
 
 /*
  * Worker function for the cleanup thread. It recursively removes all entries
index e1e8c3c276e419db88cfa4a38d7f9e09b3bbea7a..29d1f9e678c9b4adebcd478ec1f26f523dff118d 100644 (file)
@@ -62,10 +62,6 @@ struct dentry *__odf_lookup(struct dentry *parent, struct dentry *target,
                            const char *name, int len, int flags, struct dentry *link);
 struct dentry *odf_lookup_name(struct dentry *parent, const char *name, int len, int flags);
 struct dentry* odf_getdir(struct dentry *d_odf, const char *name, int len);
-struct odf_dentry_info *odf_fill_info(struct odf_dentry_info *odi,
-               struct odf_sb_info *osi, struct dentry *odf_dentry);
-struct odf_dentry_info *odf_alloc_info(struct odf_sb_info *osi, struct dentry *odf_dentry);
-void odf_put_info(struct odf_dentry_info *odi);
 
 /* dirents & dir cache */
 struct dentry *odf_ic_cache_dentry(struct dentry *dir);