Unionfs: use VFS helpers to manipulate i_nlink
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 10 Jan 2008 17:05:17 +0000 (12:05 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:33 +0000 (19:03 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/unlink.c

index ce7891e530f6e6f584aeb15751382661dd34cc1b..d7203924de562a917de301115375c5d34a3eef5e 100644 (file)
@@ -89,7 +89,7 @@ static int unionfs_do_unlink(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 && opaque != -1)