]> git.baikalelectronics.ru Git - kernel.git/commit
untangle fsnotify_d_instantiate() a bit
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Mar 2016 22:58:49 +0000 (17:58 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:17:28 +0000 (00:17 -0400)
commit86b6fa4c305d8f5c30aa7a365488022e96f3fdad
treea022bd5f91af856da9cd9e31329850bcc0163873
parent69e8e3d6227065e85661fcabc9877d1e3c5c8181
untangle fsnotify_d_instantiate() a bit

First of all, don't bother calling it if inode is NULL -
that makes inode argument unused.  Moreover, do it *before*
dropping ->d_lock, not right after that (and don't bother
grabbing ->d_lock in it, of course).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
include/linux/fsnotify.h
include/linux/fsnotify_backend.h