diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-06-23 17:54:50 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-06-27 14:45:07 +0300 |
commit | 3ac70bfcde812b1b97d8a88a832df59941fa293f (patch) | |
tree | 52dad7896f274af1f4e12fc87997994387e12333 /include/linux/fsnotify_backend.h | |
parent | 36f10f55ff1d2867bfc48ed898a9cc0dc6b49dd2 (diff) | |
download | linux-3ac70bfcde812b1b97d8a88a832df59941fa293f.tar.xz |
fsnotify: add helper to get mask from connector
Use a helper to get the mask from the object (i.e. i_fsnotify_mask)
to generalize code of add/remove inode/vfsmount mark.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 381cfb0e67fa..2b9b6f1ff5e0 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -401,6 +401,8 @@ extern struct fsnotify_event *fsnotify_remove_first_event(struct fsnotify_group /* functions used to manipulate the marks attached to inodes */ +/* Get mask of events for a list of marks */ +extern __u32 fsnotify_conn_mask(struct fsnotify_mark_connector *conn); /* Calculate mask of events for a list of marks */ extern void fsnotify_recalc_mask(struct fsnotify_mark_connector *conn); extern void fsnotify_init_mark(struct fsnotify_mark *mark, |