Commit 24174119 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4: Ensure that we return the delegation on the target of a rename too.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 40859d7e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment