diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-08-10 17:12:18 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-08-11 13:50:42 +0200 |
commit | 11fa333b58ba1518e7c69fafb6513a0117f8fe33 (patch) | |
tree | 86e5c5139a0741829ed501f616db9280bfec72ed /fs/notify/fsnotify.c | |
parent | fsnotify: replace igrab() with ihold() on attach connector (diff) | |
download | linux-11fa333b58ba1518e7c69fafb6513a0117f8fe33.tar.xz linux-11fa333b58ba1518e7c69fafb6513a0117f8fe33.zip |
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>
Diffstat (limited to 'fs/notify/fsnotify.c')
0 files changed, 0 insertions, 0 deletions