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
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);