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)
commitec44610fe2b86daef70f3f53f47d2a2542d7094f
treee12dfdbde1050af24b6c30a9ea36fb9dfa690b63
parent11fa333b58ba1518e7c69fafb6513a0117f8fe33
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