diff options
author | Amir Goldstein <amir73il@gmail.com> | 2024-03-17 19:41:54 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2024-04-04 16:24:16 +0200 |
commit | a5e57b4d370c6d320e5bfb0c919fe00aee29e039 (patch) | |
tree | 846c1566071186acee107432ed2d18117872a3c9 /.mailmap | |
parent | fsnotify: use an enum for group priority constants (diff) | |
download | linux-a5e57b4d370c6d320e5bfb0c919fe00aee29e039.tar.xz linux-a5e57b4d370c6d320e5bfb0c919fe00aee29e039.zip |
fsnotify: optimize the case of no permission event watchers
Commit e43de7f0862b ("fsnotify: optimize the case of no marks of any type")
optimized the case where there are no fsnotify watchers on any of the
filesystem's objects.
It is quite common for a system to have a single local filesystem and
it is quite common for the system to have some inotify watches on some
config files or directories, so the optimization of no marks at all is
often not in effect.
Permission event watchers, which require high priority group are more
rare, so optimizing the case of no marks og high priority groups can
improve performance for more systems, especially for performance
sensitive io workloads.
Count per-sb watched objects by high priority groups and use that the
optimize out the call to __fsnotify_parent() and fsnotify() in fsnotify
permission hooks.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20240317184154.1200192-11-amir73il@gmail.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions