提交 34ea8188 编写于 作者: T Trond Myklebust

NFSv4: Return any delegations before sillyrenaming the file

 I missed this one... Any form of rename will result in a delegation
 recall, so it is more efficient to return the one we hold before
 trying the rename.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 2c56617d
...@@ -1257,6 +1257,9 @@ dentry->d_parent->d_name.name, dentry->d_name.name); ...@@ -1257,6 +1257,9 @@ dentry->d_parent->d_name.name, dentry->d_name.name);
sprintf(silly, ".nfs%*.*lx", sprintf(silly, ".nfs%*.*lx",
i_inosize, i_inosize, dentry->d_inode->i_ino); i_inosize, i_inosize, dentry->d_inode->i_ino);
/* Return delegation in anticipation of the rename */
nfs_inode_return_delegation(dentry->d_inode);
sdentry = NULL; sdentry = NULL;
do { do {
char *suffix = silly + slen - countersize; char *suffix = silly + slen - countersize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册