These are used only in a single place now. Inline them to the call site. Signed-off-by: Jan Kara --- fs/notify/mark.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/fs/notify/mark.c b/fs/notify/mark.c index c01c38244f30..c9b5ca198f3b 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -138,16 +138,6 @@ __u32 fsnotify_conn_mask(struct fsnotify_mark_connector *conn) return READ_ONCE(*fsnotify_conn_mask_p(conn)); } -static void fsnotify_get_sb_watched_objects(struct fsnotify_sb_info *sbinfo) -{ - atomic_long_inc(&sbinfo->watched_objects[0]); -} - -static void fsnotify_put_sb_watched_objects(struct fsnotify_sb_info *sbinfo) -{ - atomic_long_dec(&sbinfo->watched_objects[0]); -} - /* * Grab or drop watched objects reference depending on whether the connector * is attached and has any marks attached. @@ -183,10 +173,10 @@ static void fsnotify_update_sb_watchers(struct fsnotify_mark_connector *conn) BUILD_BUG_ON(FSNOTIFY_PRIO_NORMAL != 0); if (first_mark && !is_watched) { conn->flags |= FSNOTIFY_CONN_FLAG_IS_WATCHED; - fsnotify_get_sb_watched_objects(sbinfo); + atomic_long_inc(&sbinfo->watched_objects[0]); } else if (!first_mark && is_watched) { conn->flags &= ~FSNOTIFY_CONN_FLAG_IS_WATCHED; - fsnotify_put_sb_watched_objects(sbinfo); + atomic_long_dec(&sbinfo->watched_objects[0]); } } -- 2.51.0