* [PATCH] fs/notify: ftrace: Remove obsoleted fanotify_event_has_path()
@ 2022-09-26 2:30 Gaosheng Cui
2022-09-26 9:29 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Gaosheng Cui @ 2022-09-26 2:30 UTC (permalink / raw)
To: jack, amir73il, repnop, cuigaosheng1; +Cc: linux-fsdevel
All uses of fanotify_event_has_path() have
been removed since commit 9c61f3b560f5 ("fanotify: break up
fanotify_alloc_event()"), now it is useless, so remove it.
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
fs/notify/fanotify/fanotify.h | 6 ------
1 file changed, 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)
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fs/notify: ftrace: Remove obsoleted fanotify_event_has_path()
2022-09-26 2:30 [PATCH] fs/notify: ftrace: Remove obsoleted fanotify_event_has_path() Gaosheng Cui
@ 2022-09-26 9:29 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2022-09-26 9:29 UTC (permalink / raw)
To: Gaosheng Cui; +Cc: jack, amir73il, repnop, linux-fsdevel
On Mon 26-09-22 10:30:18, Gaosheng Cui wrote:
> All uses of fanotify_event_has_path() have
> been removed since commit 9c61f3b560f5 ("fanotify: break up
> fanotify_alloc_event()"), now it is useless, so remove it.
>
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Thanks. Patch merged to my tree.
Honza
> ---
> fs/notify/fanotify/fanotify.h | 6 ------
> 1 file changed, 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)
> --
> 2.25.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-26 9:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 2:30 [PATCH] fs/notify: ftrace: Remove obsoleted fanotify_event_has_path() Gaosheng Cui
2022-09-26 9:29 ` Jan Kara
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.