diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/unlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c index 9a16bad5d2ea..7bdec8531400 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, | |||
444 | 444 | ||
445 | /* set up nfs_renamedata */ | 445 | /* set up nfs_renamedata */ |
446 | data->old_dir = old_dir; | 446 | data->old_dir = old_dir; |
447 | atomic_inc(&old_dir->i_count); | 447 | ihold(old_dir); |
448 | data->new_dir = new_dir; | 448 | data->new_dir = new_dir; |
449 | atomic_inc(&new_dir->i_count); | 449 | ihold(new_dir); |
450 | data->old_dentry = dget(old_dentry); | 450 | data->old_dentry = dget(old_dentry); |
451 | data->new_dentry = dget(new_dentry); | 451 | data->new_dentry = dget(new_dentry); |
452 | nfs_fattr_init(&data->old_fattr); | 452 | nfs_fattr_init(&data->old_fattr); |