]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: count all objects with attached connectors
authorAmir Goldstein <amir73il@gmail.com>
Tue, 10 Aug 2021 15:12:19 +0000 (18:12 +0300)
committerJan Kara <jack@suse.cz>
Wed, 11 Aug 2021 11:50:48 +0000 (13:50 +0200)
commitee315796aa6acef26d20523bbe77f8a937c0e0ee
treee12dfdbde1050af24b6c30a9ea36fb9dfa690b63
parentc8d9c3c802b5b7ad1ffbf8eedca5a85df2d96699
fsnotify: count all objects with attached connectors

Rename s_fsnotify_inode_refs to s_fsnotify_connectors and count all
objects with attached connectors, not only inodes with attached
connectors.

This will be used to optimize fsnotify() calls on sb without any
type of marks.

Link: https://lore.kernel.org/r/20210810151220.285179-4-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Matthew Bobrowski <repnop@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
fs/notify/fsnotify.h
fs/notify/mark.c
include/linux/fs.h