OSDN Git Service

fsnotify: add empty fsnotify_{unlink,rmdir}() hooks
authorAmir Goldstein <amir73il@gmail.com>
Sun, 26 May 2019 14:34:02 +0000 (17:34 +0300)
committerJan Kara <jack@suse.cz>
Thu, 20 Jun 2019 12:44:55 +0000 (14:44 +0200)
commit116b9731ad7614032a390bb9ad8998a14d6dc752
tree84b173caba143f3c3ecd41727f61cb06335d7941
parent0b3b094ac9a7bb1fcf5d694f3ec981e6864a63d3
fsnotify: add empty fsnotify_{unlink,rmdir}() hooks

We would like to move fsnotify_nameremove() calls from d_delete()
into a higher layer where the hook makes more sense and so we can
consider every d_delete() call site individually.

Start by creating empty hook fsnotify_{unlink,rmdir}() and place
them in the proper VFS call sites.  After all d_delete() call sites
will be converted to use the new hook, the new hook will generate the
delete events and fsnotify_nameremove() hook will be removed.

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