summaryrefslogtreecommitdiff
path: root/fs/notify
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-26 10:30:18 +0800
committerJan Kara <jack@suse.cz>2022-09-26 11:28:40 +0200
commit7a80bf902d2bc722b4477442ee772e8574603185 (patch)
treeb6c0c0b627b2810813a0ccf5cf4a19822f212689 /fs/notify
parentf847c74d6e89f10926db58649a05b99237258691 (diff)
downloadlwn-7a80bf902d2bc722b4477442ee772e8574603185.tar.gz
lwn-7a80bf902d2bc722b4477442ee772e8574603185.zip
fanotify: Remove obsoleted fanotify_event_has_path()
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>
Diffstat (limited to 'fs/notify')
-rw-r--r--fs/notify/fanotify/fanotify.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h
index 1d9f11255c64..b34246c6ec87 100644
--- a/fs/notify/fanotify/fanotify.h
+++ b/fs/notify/fanotify/fanotify.h
@@ -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)