summaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-10-07 08:28:50 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-10-07 08:28:50 -0700
commitabf625dc8c1db167150c844028a2f9f4c329fe68 (patch)
treee828459ee449ac9282ff2319b498a4c8644ad7ad /fs/notify/fanotify
parent9f4b9beeb9cf46c4b172fca06de5bd6831108641 (diff)
parent7a80bf902d2bc722b4477442ee772e8574603185 (diff)
downloadlinux-abf625dc8c1db167150c844028a2f9f4c329fe68.tar.gz
linux-abf625dc8c1db167150c844028a2f9f4c329fe68.tar.bz2
linux-abf625dc8c1db167150c844028a2f9f4c329fe68.zip
Merge tag 'fsnotify-for_v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fsnotify updates from Jan Kara: "Two cleanups for fsnotify code" * tag 'fsnotify-for_v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: fanotify: Remove obsoleted fanotify_event_has_path() fsnotify: remove unused declaration
Diffstat (limited to 'fs/notify/fanotify')
-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 bf6d4d38afa0..57f51a9a3015 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 const struct path *fanotify_event_path(struct fanotify_event *event)
{
if (event->type == FANOTIFY_EVENT_TYPE_PATH)