Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34ea8188 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 2c56617d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1257,6 +1257,9 @@ dentry->d_parent->d_name.name, dentry->d_name.name);
	sprintf(silly, ".nfs%*.*lx",
		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;
	do {
		char *suffix = silly + slen - countersize;