Merge tag 'fsnotify-for_v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Oct 2022 15:28:50 +0000 (08:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Oct 2022 15:28:50 +0000 (08:28 -0700)
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

1  2 
fs/notify/fanotify/fanotify.h

@@@ -452,13 -452,7 +452,7 @@@ static inline bool fanotify_is_error_ev
        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)
 +static inline const struct path *fanotify_event_path(struct fanotify_event *event)
  {
        if (event->type == FANOTIFY_EVENT_TYPE_PATH)
                return &FANOTIFY_PE(event)->path;