diff options
author | Jan Kara <jack@suse.cz> | 2020-03-24 19:35:07 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-03-25 10:27:16 +0100 |
commit | 01affd5471dcab04c6cb0c2acaf132a20488f86f (patch) | |
tree | f3f42caaadc86a377c61ca3fa1d8fc62c6f03d9f /fs/notify/fanotify/fanotify.c | |
parent | d766b553615ce67f33848ec4f6672b3158198a5c (diff) |
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.c')
-rw-r--r-- | fs/notify/fanotify/fanotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 74676228f784..ef39664e389c 100644 --- a/fs/notify/fanotify/fanotify.c +++ b/fs/notify/fanotify/fanotify.c @@ -387,7 +387,7 @@ init: __maybe_unused else event->pid = get_pid(task_tgid(current)); - if (fanotify_event_has_fid(event)) { + if (fanotify_event_object_fh(event)) { ffe->object_fh.len = 0; if (fsid) ffe->fsid = *fsid; |