diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-07-08 13:11:37 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-07-15 17:36:41 +0200 |
commit | c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a (patch) | |
tree | 3bd2d3996e88cfe74a51e4403ef67108365de1b6 /security/smack/smack.h | |
parent | fsnotify: Rearrange fast path to minimise overhead when there is no watcher (diff) | |
download | linux-c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a.tar.xz linux-c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a.zip |
fsnotify: fold fsnotify() call into fsnotify_parent()
All (two) callers of fsnotify_parent() also call fsnotify() to notify
the child inode. Move the second fsnotify() call into fsnotify_parent().
This will allow more flexibility in making decisions about which of the
two event falvors should be sent.
Using 'goto notify_child' in the inline helper seems a bit strange, but
it mimics the code in __fsnotify_parent() for clarity and the goto
pattern will become less strage after following patches are applied.
Link: https://lore.kernel.org/r/20200708111156.24659-2-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'security/smack/smack.h')
0 files changed, 0 insertions, 0 deletions