commit | 3819bb0d79f50b05910db5bdc6d9ef512184e3b1 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Fri May 11 17:03:19 2018 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon May 21 14:30:10 2018 -0400 |
tree | 471f4930a15a15c6e482fc0284fef824e02dcee4 | |
parent | 9c3e9025a3f7ed25c99a0add8af65431c8043800 [diff] |
nfsd: vfs_mkdir() might succeed leaving dentry negative unhashed That can (and does, on some filesystems) happen - ->mkdir() (and thus vfs_mkdir()) can legitimately leave its argument negative and just unhash it, counting upon the lookup to pick the object we'd created next time we try to look at that name. Some vfs_mkdir() callers forget about that possibility... Acked-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>