aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 21:24:27 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:57 -0400
commit5444e2981c31d0ed7465475e451b8437084337e5 (patch)
tree66b6d84b7aab886b44a3467a139d258d9aba09df /include/linux/fsnotify_backend.h
parent32c3263221bd63316815286dccacdc7abfd7f3c4 (diff)
fsnotify: split generic and inode specific mark code
currently all marking is done by functions in inode-mark.c. Some of this is pretty generic and should be instead done in a generic function and we should only put the inode specific code in inode-mark.c Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index 7d93572ec568..27cccbecbf23 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -364,11 +364,12 @@ extern struct fsnotify_event *fsnotify_remove_notify_event(struct fsnotify_group
364extern void fsnotify_recalc_inode_mask(struct inode *inode); 364extern void fsnotify_recalc_inode_mask(struct inode *inode);
365extern void fsnotify_init_mark(struct fsnotify_mark *mark, void (*free_mark)(struct fsnotify_mark *mark)); 365extern void fsnotify_init_mark(struct fsnotify_mark *mark, void (*free_mark)(struct fsnotify_mark *mark));
366/* find (and take a reference) to a mark associated with group and inode */ 366/* find (and take a reference) to a mark associated with group and inode */
367extern struct fsnotify_mark *fsnotify_find_mark(struct fsnotify_group *group, struct inode *inode); 367extern struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *group, struct inode *inode);
368/* copy the values from old into new */ 368/* copy the values from old into new */
369extern void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old); 369extern void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old);
370/* attach the mark to both the group and the inode */ 370/* attach the mark to both the group and the inode */
371extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, struct inode *inode, int allow_dups); 371extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group,
372 struct inode *inode, struct vfsmount *mnt, int allow_dups);
372/* given a mark, flag it to be freed when all references are dropped */ 373/* given a mark, flag it to be freed when all references are dropped */
373extern void fsnotify_destroy_mark(struct fsnotify_mark *mark); 374extern void fsnotify_destroy_mark(struct fsnotify_mark *mark);
374/* run all the marks in a group, and flag them to be freed */ 375/* run all the marks in a group, and flag them to be freed */