Skip to content

Commit

Permalink
NFSv4: Ensure that we return the delegation on the target of a rename…
Browse files Browse the repository at this point in the history
… too.

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jan 6, 2006
1 parent 40859d7 commit 2417411
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,8 +1550,10 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
}
nfs_inode_return_delegation(old_inode);

if (new_inode)
if (new_inode != NULL) {
nfs_inode_return_delegation(new_inode);
d_delete(new_dentry);
}

nfs_begin_data_update(old_dir);
nfs_begin_data_update(new_dir);
Expand Down

0 comments on commit 2417411

Please sign in to comment.