From: Erez Zadok Date: Tue, 1 Jan 2008 21:43:39 +0000 (-0500) Subject: Unionfs: use VFS helpers to manipulate i_nlink X-Git-Tag: unionfs-2.5.9.2~153 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=8725dcc8f19c13a964f86ebeb10151358d4a7b2a;p=unionfs-2.6.38.y.git Unionfs: use VFS helpers to manipulate i_nlink Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index a1c82b6d2d8..1e370a1f21d 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))