diff options
author | 2024-11-15 10:30:16 -0500 | |
---|---|---|
committer | 2024-12-10 12:03:16 +0100 | |
commit | 318652e07fa5b1743d08eeccd69a1f47f2c15710 (patch) | |
tree | 368f2283af2d2a436bf73a8e24ad7f9f9779ea1e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | fsnotify: opt-in for permission events at file open time (diff) | |
download | wireguard-linux-318652e07fa5b1743d08eeccd69a1f47f2c15710.tar.xz wireguard-linux-318652e07fa5b1743d08eeccd69a1f47f2c15710.zip |
fsnotify: check if file is actually being watched for pre-content events on open
So far, we set FMODE_NONOTIFY_ flags at open time if we know that there
are no permission event watchers at all on the filesystem, but lack of
FMODE_NONOTIFY_ flags does not mean that the file is actually watched.
For pre-content events, it is possible to optimize things so that we
don't bother trying to send pre-content events if file was not watched
(through sb, mnt, parent or inode itself) on open. Set FMODE_NONOTIFY_
flags according to that.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/2ddcc9f8d1fde48d085318a6b5a889289d8871d8.1731684329.git.josef@toxicpanda.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions