diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-04-28 08:09:50 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-15 19:24:33 +0200 |
| commit | 12ffbb117b64d9f4b1b02521010a5f2953a1972a (patch) | |
| tree | 247b1b9d82463b9acc12034d807bdd7030baf00f /include | |
| parent | ad4489dcd08dcfbc32ea6e6a4f558cdd459bd80c (diff) | |
| download | lwn-12ffbb117b64d9f4b1b02521010a5f2953a1972a.tar.gz lwn-12ffbb117b64d9f4b1b02521010a5f2953a1972a.zip | |
fsnotify: add fsnotify_modify_mark_mask()
nfsd needs to be able to modify the mask on an existing mark when new
directory delegations are set or unset. Add an exported function that
allows the caller to set and clear bits in the mark->mask, and does
the recalculation if something changed.
Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260428-dir-deleg-v3-6-5a0780ba9def@kernel.org
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fsnotify_backend.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 95985400d3d8..66e185bd1b1b 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -917,6 +917,7 @@ extern void fsnotify_get_mark(struct fsnotify_mark *mark); extern void fsnotify_put_mark(struct fsnotify_mark *mark); extern void fsnotify_finish_user_wait(struct fsnotify_iter_info *iter_info); extern bool fsnotify_prepare_user_wait(struct fsnotify_iter_info *iter_info); +extern void fsnotify_modify_mark_mask(struct fsnotify_mark *mark, u32 set, u32 clear); static inline void fsnotify_init_event(struct fsnotify_event *event) { |
