]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
fanotify: Remove obsoleted fanotify_event_has_path()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Mon, 26 Sep 2022 02:30:18 +0000 (10:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:19 +0000 (16:19 +0200)
[ Upstream commit 7a80bf902d2bc722b4477442ee772e8574603185 ]

All uses of fanotify_event_has_path() have
been removed since commit 9c61f3b560f5 ("fanotify: break up
fanotify_alloc_event()"), now it is useless, so remove it.

Link: https://lore.kernel.org/r/20220926023018.1505270-1-cuigaosheng1@huawei.com
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.h

index bf6d4d38afa04bf05dc47b300d0b60644cff7619..57f51a9a3015d5c2d1c652e95b1216b1462574c0 100644 (file)
@@ -452,12 +452,6 @@ static inline bool fanotify_is_error_event(u32 mask)
        return mask & FAN_FS_ERROR;
 }
 
-static inline bool fanotify_event_has_path(struct fanotify_event *event)
-{
-       return event->type == FANOTIFY_EVENT_TYPE_PATH ||
-               event->type == FANOTIFY_EVENT_TYPE_PATH_PERM;
-}
-
 static inline const struct path *fanotify_event_path(struct fanotify_event *event)
 {
        if (event->type == FANOTIFY_EVENT_TYPE_PATH)