diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2009-12-03 21:58:56 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-12-03 21:58:56 +0100 |
commit | 27226104e60964f21717e0f452cecd45c85a64c6 (patch) | |
tree | fc0bf5aea3d316034a9d51ce00a135e9ddbce5f2 /crypto | |
parent | nfs: fix comments in nfs_rename() (diff) | |
download | linux-27226104e60964f21717e0f452cecd45c85a64c6.tar.xz linux-27226104e60964f21717e0f452cecd45c85a64c6.zip |
nfs: dont unhash target if renaming a directory
Move unhashing the target to after the check for existence and being a
non-directory.
If renaming a directory then the VFS already unhashes the target if it
is not busy. If it's busy then acquiring more references during the
rename makes no difference.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions