commit 20749581192bed80e87915026996076e22fb5e9c
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Tue May 29 12:14:13 2007 -0400
removed unneeded functions for allocating/freeing odf_dentry_info's
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index ad395d7..66cfca7 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -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
diff --git a/fs/unionfs/odf.h b/fs/unionfs/odf.h
index e1e8c3c..29d1f9e 100644
--- a/fs/unionfs/odf.h
+++ b/fs/unionfs/odf.h
@@ -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);
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs