]> Git Repo - linux.git/commitdiff
fanotify: Remove obsoleted fanotify_event_has_path()
authorGaosheng Cui <[email protected]>
Mon, 26 Sep 2022 02:30:18 +0000 (10:30 +0800)
committerJan Kara <[email protected]>
Mon, 26 Sep 2022 09:28:40 +0000 (11:28 +0200)
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/[email protected]
Signed-off-by: Gaosheng Cui <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
fs/notify/fanotify/fanotify.h

index 1d9f11255c64f5408e6d0ce900b9c8c61867e686..b34246c6ec87e9c9b1b21d57a3f35edd7fa5a90f 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 struct path *fanotify_event_path(struct fanotify_event *event)
 {
        if (event->type == FANOTIFY_EVENT_TYPE_PATH)
This page took 0.054652 seconds and 4 git commands to generate.