fsnotify: count s_fsnotify_inode_refs for attached connectors
authorAmir Goldstein <amir73il@gmail.com>
Tue, 10 Aug 2021 15:12:18 +0000 (18:12 +0300)
committerJan Kara <jack@suse.cz>
Wed, 11 Aug 2021 11:50:42 +0000 (13:50 +0200)
commit11fa333b58ba1518e7c69fafb6513a0117f8fe33
tree86e5c5139a0741829ed501f616db9280bfec72ed
parent09ddbe69c9925b42cb9529f60678c25b241d8b18
fsnotify: count s_fsnotify_inode_refs for attached connectors

Instead of incrementing s_fsnotify_inode_refs when detaching connector
from inode, increment it earlier when attaching connector to inode.
Next patch is going to use s_fsnotify_inode_refs to count all objects
with attached connectors.

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