Skip to content

Commit

Permalink
NFSv4: Return any delegations before sillyrenaming the file
Browse files Browse the repository at this point in the history
 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: Trond Myklebust <[email protected]>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Nov 4, 2005
1 parent 2c56617 commit 34ea818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34ea818

Please sign in to comment.