fsnotify: Add fsnotify_sb_has_watchers() helper
authorAmir Goldstein <amir73il@gmail.com>
Wed, 24 Jan 2024 15:29:33 +0000 (16:29 +0100)
committerJan Kara <jack@suse.cz>
Wed, 24 Jan 2024 15:29:33 +0000 (16:29 +0100)
commitb7dbaace39713025f1fd33407c89651a0c09f667
tree22575be124beb8c5f72ee82764c56c2498c95ee2
parent082fd1ea1f98e6bb1189213a2404ddd774de3843
fsnotify: Add fsnotify_sb_has_watchers() helper

Instead of opencoded checks for number of fsnotify connectors add a
helper fsnotify_sb_has_watchers().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
include/linux/fsnotify.h