From 1ea49e0805d92370ca5be1af4c6e3eab9e602169 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 1 Jan 2008 16:43:39 -0500 Subject: [PATCH] Unionfs: use VFS helpers to manipulate i_nlink Signed-off-by: Erez Zadok --- fs/unionfs/unlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0