diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-30 16:11:52 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-31 15:02:16 -0400 |
commit | ed7e9ad0908a8c2a502f49ceed940d0ce122fe8b (patch) | |
tree | 45c6f3d289a084cae5415695591bb9ad7316f6cd /fs/nfs/proc.c | |
parent | 991eedb1371dc09b0f9848f59c8898fe63d198c0 (diff) |
NFSv4: Fix sillyrename to return the delegation when appropriate
Ensure that we pass down the inode of the file being deleted so
that we can return any delegation being held.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 80c350b6232a..763f77e7f1f1 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -321,7 +321,9 @@ nfs_proc_remove(struct inode *dir, struct dentry *dentry) | |||
321 | } | 321 | } |
322 | 322 | ||
323 | static void | 323 | static void |
324 | nfs_proc_unlink_setup(struct rpc_message *msg, struct dentry *dentry) | 324 | nfs_proc_unlink_setup(struct rpc_message *msg, |
325 | struct dentry *dentry, | ||
326 | struct inode *inode) | ||
325 | { | 327 | { |
326 | msg->rpc_proc = &nfs_procedures[NFSPROC_REMOVE]; | 328 | msg->rpc_proc = &nfs_procedures[NFSPROC_REMOVE]; |
327 | } | 329 | } |