diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 20:12:05 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:17 -0400 |
commit | 40554c3dae83bd892b7fbfaa2ea9de739cbcf065 (patch) | |
tree | 7b9d4951734af9d819a900ff08f23c797a5c1b5c /include/linux/fsnotify_backend.h | |
parent | 9e1c74321d87a8b079f04d89e750b39a43365e1f (diff) |
fsnotify: allow addition of duplicate fsnotify marks
This patch allows a task to add a second fsnotify mark to an inode for the
same group. This mark will be added to the end of the inode's list and
this will never be found by the stand fsnotify_find_mark() function. This
is useful if a user wants to add a new mark before removing the old one.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 390516732956..1679f250d59e 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -345,7 +345,7 @@ extern struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_grou | |||
345 | /* copy the values from old into new */ | 345 | /* copy the values from old into new */ |
346 | extern void fsnotify_duplicate_mark(struct fsnotify_mark_entry *new, struct fsnotify_mark_entry *old); | 346 | extern void fsnotify_duplicate_mark(struct fsnotify_mark_entry *new, struct fsnotify_mark_entry *old); |
347 | /* attach the mark to both the group and the inode */ | 347 | /* attach the mark to both the group and the inode */ |
348 | extern int fsnotify_add_mark(struct fsnotify_mark_entry *entry, struct fsnotify_group *group, struct inode *inode); | 348 | extern int fsnotify_add_mark(struct fsnotify_mark_entry *entry, struct fsnotify_group *group, struct inode *inode, int allow_dups); |
349 | /* given a mark, flag it to be freed when all references are dropped */ | 349 | /* given a mark, flag it to be freed when all references are dropped */ |
350 | extern void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry); | 350 | extern void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry); |
351 | /* run all the marks in a group, and flag them to be freed */ | 351 | /* run all the marks in a group, and flag them to be freed */ |