From a4118ee1d80b527c385cadd14db79559efb8a493 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 27 Oct 2010 11:00:08 -0400 Subject: a couple of open-coded ihold() introduced by nfs merge Signed-off-by: Al Viro --- fs/nfs/unlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs') diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index 9a16bad5d2e..7bdec853140 100644 --- a/fs/nfs/unlink.c +++ b/fs/nfs/unlink.c @@ -444,9 +444,9 @@ nfs_async_rename(struct inode *old_dir, struct inode *new_dir, /* set up nfs_renamedata */ data->old_dir = old_dir; - atomic_inc(&old_dir->i_count); + ihold(old_dir); data->new_dir = new_dir; - atomic_inc(&new_dir->i_count); + ihold(new_dir); data->old_dentry = dget(old_dentry); data->new_dentry = dget(new_dentry); nfs_fattr_init(&data->old_fattr); -- cgit v1.2.3-70-g09d2