• Amir Goldstein's avatar
    fsnotify: create helper fsnotify_update_sb_watchers() · c9d4603b
    Amir Goldstein authored
    We would like to count watched objects by priority group, so we will need
    to update the watched object counter after adding/removing marks.
    
    Create a helper fsnotify_update_sb_watchers() and call it after
    attaching/detaching a mark, instead of fsnotify_{get,put}_sb_watchers()
    only after attaching/detaching a connector.
    
    Soon, we will use this helper to count watched objects by the highest
    watching priority group.
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Message-Id: <20240317184154.1200192-7-amir73il@gmail.com>
    c9d4603b
mark.c 26.4 KB