Skip to content

Commit 7a80bf9

Browse files
gscuijankara
authored andcommitted
fanotify: Remove obsoleted fanotify_event_has_path()
All uses of fanotify_event_has_path() have been removed since commit 9c61f3b ("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]>
1 parent f847c74 commit 7a80bf9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/notify/fanotify/fanotify.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,6 @@ static inline bool fanotify_is_error_event(u32 mask)
452452
return mask & FAN_FS_ERROR;
453453
}
454454

455-
static inline bool fanotify_event_has_path(struct fanotify_event *event)
456-
{
457-
return event->type == FANOTIFY_EVENT_TYPE_PATH ||
458-
event->type == FANOTIFY_EVENT_TYPE_PATH_PERM;
459-
}
460-
461455
static inline struct path *fanotify_event_path(struct fanotify_event *event)
462456
{
463457
if (event->type == FANOTIFY_EVENT_TYPE_PATH)

0 commit comments

Comments
 (0)