From 09262a38c792b86dfef741b693da4d3de6bda208 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 10 Jan 2008 12:05:17 -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 ce7891e530..d7203924de 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -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) -- 2.43.0