diff options
author | Amir Goldstein | 2020-07-08 14:11:37 +0300 |
---|---|---|
committer | Jan Kara | 2020-07-15 17:36:41 +0200 |
commit | c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a (patch) | |
tree | 3bd2d3996e88cfe74a51e4403ef67108365de1b6 /fs/nfsd | |
parent | 71d734103edfa2b4c6657578a3082ee0e51d767e (diff) |
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 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions