diff options
author | Jan Kara <jack@suse.cz> | 2020-03-24 21:35:07 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-03-25 12:27:16 +0300 |
commit | 01affd5471dcab04c6cb0c2acaf132a20488f86f (patch) | |
tree | f3f42caaadc86a377c61ca3fa1d8fc62c6f03d9f /fs/notify/fanotify/fanotify.h | |
parent | d766b553615ce67f33848ec4f6672b3158198a5c (diff) | |
download | linux-01affd5471dcab04c6cb0c2acaf132a20488f86f.tar.xz |
fanotify: Drop fanotify_event_has_fid()
When some events have directory id and some object id,
fanotify_event_has_fid() becomes mostly useless and confusing because we
usually need to know which type of file handle the event has. So just
drop the function and use fanotify_event_object_fh() instead.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/fanotify/fanotify.h')
-rw-r--r-- | fs/notify/fanotify/fanotify.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h index 3b50ee44a0cd..eecf4be3bfd1 100644 --- a/fs/notify/fanotify/fanotify.h +++ b/fs/notify/fanotify/fanotify.h @@ -83,11 +83,6 @@ FANOTIFY_FE(struct fanotify_event *event) return container_of(event, struct fanotify_fid_event, fae); } -static inline bool fanotify_event_has_fid(struct fanotify_event *event) -{ - return event->type == FANOTIFY_EVENT_TYPE_FID; -} - static inline __kernel_fsid_t *fanotify_event_fsid(struct fanotify_event *event) { if (event->type == FANOTIFY_EVENT_TYPE_FID) |