diff options
author | Lino Sanfilippo <LinoSanfilippo@gmx.de> | 2011-06-14 11:29:52 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-12-11 13:44:36 -0500 |
commit | d5a335b845792d2a69ed1e244c0b233117b7db3c (patch) | |
tree | 7a340810ee8cba71ba90ab61f2a9bcef7c63a158 /include | |
parent | e2a29943e9a2ee2aa737a77f550f46ba72269db4 (diff) |
fsnotify: introduce locked versions of fsnotify_add_mark() and fsnotify_remove_mark()
This patch introduces fsnotify_add_mark_locked() and fsnotify_remove_mark_locked()
which are essentially the same as fsnotify_add_mark() and fsnotify_remove_mark() but
assume that the caller has already taken the groups mark mutex.
Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsnotify_backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 140b4b8a100b..26c06afa264e 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -408,9 +408,13 @@ extern void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask | |||
408 | /* attach the mark to both the group and the inode */ | 408 | /* attach the mark to both the group and the inode */ |
409 | extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, | 409 | extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, |
410 | struct inode *inode, struct vfsmount *mnt, int allow_dups); | 410 | struct inode *inode, struct vfsmount *mnt, int allow_dups); |
411 | extern int fsnotify_add_mark_locked(struct fsnotify_mark *mark, struct fsnotify_group *group, | ||
412 | struct inode *inode, struct vfsmount *mnt, int allow_dups); | ||
411 | /* given a group and a mark, flag mark to be freed when all references are dropped */ | 413 | /* given a group and a mark, flag mark to be freed when all references are dropped */ |
412 | extern void fsnotify_destroy_mark(struct fsnotify_mark *mark, | 414 | extern void fsnotify_destroy_mark(struct fsnotify_mark *mark, |
413 | struct fsnotify_group *group); | 415 | struct fsnotify_group *group); |
416 | extern void fsnotify_destroy_mark_locked(struct fsnotify_mark *mark, | ||
417 | struct fsnotify_group *group); | ||
414 | /* run all the marks in a group, and clear all of the vfsmount marks */ | 418 | /* run all the marks in a group, and clear all of the vfsmount marks */ |
415 | extern void fsnotify_clear_vfsmount_marks_by_group(struct fsnotify_group *group); | 419 | extern void fsnotify_clear_vfsmount_marks_by_group(struct fsnotify_group *group); |
416 | /* run all the marks in a group, and clear all of the inode marks */ | 420 | /* run all the marks in a group, and clear all of the inode marks */ |