Skip to content

Commit

Permalink
a couple of open-coded ihold() introduced by nfs merge
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 29, 2010
1 parent 18cb657 commit a4118ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfs/unlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4118ee

Please sign in to comment.