提交 24174119 编写于 作者: T Trond Myklebust

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

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 40859d7e
...@@ -1550,8 +1550,10 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry, ...@@ -1550,8 +1550,10 @@ static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry,
} }
nfs_inode_return_delegation(old_inode); nfs_inode_return_delegation(old_inode);
if (new_inode) if (new_inode != NULL) {
nfs_inode_return_delegation(new_inode);
d_delete(new_dentry); d_delete(new_dentry);
}
nfs_begin_data_update(old_dir); nfs_begin_data_update(old_dir);
nfs_begin_data_update(new_dir); nfs_begin_data_update(new_dir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册