]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFS: Fix old dentry rehash after move
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 16 Mar 2017 01:50:09 +0000 (21:50 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 27 Mar 2017 17:30:49 +0000 (13:30 -0400)
commitd4ea7e3c5c0e341c15b073016dbf3ab6c65f12f3
tree607ac546dba0a5280694edd08c00336d11d05a2f
parentda066f3f039eba3e72e97b2ccad0dd8b45ba84bd
NFS: Fix old dentry rehash after move

Now that nfs_rename()'s d_move has moved within the RPC task's rpc_call_done
callback, rehashing new_dentry will actually rehash the old dentry's name
in nfs_rename().  d_move() is going to rehash the new dentry for us anyway,
so doing it again here is unnecessary.

Reported-by: Chuck Lever <chuck.lever@oracle.com>
Fixes: 920b4530fb80 ("NFS: nfs_rename() handle -ERESTARTSYS dentry left behind")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c