diff options
author | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-25 21:27:27 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-10-27 12:34:18 +0200 |
commit | 330ae77d2a5b0af32c0f29e139bf28ec8591de59 (patch) | |
tree | ec785b7a77df576386f4d52e16c88c272235f61d /fs/notify/inotify | |
parent | fsnotify: Protect fsnotify_handle_inode_event from no-inode events (diff) | |
download | linux-330ae77d2a5b0af32c0f29e139bf28ec8591de59.tar.xz linux-330ae77d2a5b0af32c0f29e139bf28ec8591de59.zip |
fsnotify: Pass group argument to free_event
For group-wide mempool backed events, like FS_ERROR, the free_event
callback will need to reference the group's mempool to free the memory.
Wire that argument into the current callers.
Link: https://lore.kernel.org/r/20211025192746.66445-13-krisman@collabora.com
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/inotify')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index a96582cbfad1..d92d7b0adc9a 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c @@ -177,7 +177,8 @@ static void inotify_free_group_priv(struct fsnotify_group *group) dec_inotify_instances(group->inotify_data.ucounts); } -static void inotify_free_event(struct fsnotify_event *fsn_event) +static void inotify_free_event(struct fsnotify_group *group, + struct fsnotify_event *fsn_event) { kfree(INOTIFY_E(fsn_event)); } |