]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: get rid of fsnotify_nameremove()
authorAmir Goldstein <amir73il@gmail.com>
Sun, 26 May 2019 14:34:11 +0000 (17:34 +0300)
committerJan Kara <jack@suse.cz>
Thu, 20 Jun 2019 12:47:54 +0000 (14:47 +0200)
commit19daa767b61dc82a8dbb433794df4b0f16f068d9
treeb2906da2c692ddddfcd63ba74c8ee1e1747ec508
parentc2262d9f1121d22ba9b629f579bf5f5322920dfc
fsnotify: get rid of fsnotify_nameremove()

For all callers of fsnotify_{unlink,rmdir}(), we made sure that d_parent
and d_name are stable.  Therefore, fsnotify_{unlink,rmdir}() do not need
the safety measures in fsnotify_nameremove() to stabilize parent and name.
We can now simplify those hooks and get rid of fsnotify_nameremove().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
include/linux/fsnotify.h
include/linux/fsnotify_backend.h