Unionfs: use VFS helpers to manipulate i_nlink
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 1 Jan 2008 21:43:39 +0000 (16:43 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:37:26 +0000 (22:37 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/unlink.c

index a1c82b6d2d8e08d0e25dfe1f52409ee2193a801e..1e370a1f21d3806412e63dc514e317b57f538857 100644 (file)
@@ -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))