GIT: unionfs2-2.6.27.y: Unionfs: use VFS helpers to manipulate i_nlink
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:42 EDT 2010
commit fe0dd3abe8fad00a75e3a4ab9a33aa3c6130bac2
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Tue Jan 1 16:43:39 2008 -0500
Unionfs: use VFS helpers to manipulate i_nlink
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index a1c82b6..1e370a1 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -79,7 +79,7 @@ static int unionfs_unlink_whiteout(struct inode *dir, struct dentry *dentry)
out:
if (!err)
- dentry->d_inode->i_nlink--;
+ inode_dec_link_count(dentry->d_inode);
/* We don't want to leave negative leftover dentries for revalidate. */
if (!err && (dbopaque(dentry) != -1))
More information about the unionfs-cvs
mailing list