]> git.baikalelectronics.ru Git - kernel.git/commit
cachefiles: vfs_mkdir() might succeed leaving dentry negative unhashed
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 11 May 2018 02:59:45 +0000 (22:59 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 May 2018 18:30:10 +0000 (14:30 -0400)
commit0d4cbdfca387e1152514dba32c9ae9ea883b2f63
treed8f892f5750d1aea00dcef9d9f7ea1719f11a6ce
parent352756421e40585399cac7fa56822495be0e8045
cachefiles: 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...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cachefiles/namei.c