diff options
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 2d2f015fb700..489c881ed4ec 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -267,8 +267,9 @@ struct fsnotify_mark { | |||
267 | struct fsnotify_vfsmount_mark m; | 267 | struct fsnotify_vfsmount_mark m; |
268 | }; | 268 | }; |
269 | struct list_head free_g_list; /* tmp list used when freeing this mark */ | 269 | struct list_head free_g_list; /* tmp list used when freeing this mark */ |
270 | #define FSNOTIFY_MARK_FLAG_INODE 0x01 | 270 | #define FSNOTIFY_MARK_FLAG_INODE 0x01 |
271 | #define FSNOTIFY_MARK_FLAG_VFSMOUNT 0x02 | 271 | #define FSNOTIFY_MARK_FLAG_VFSMOUNT 0x02 |
272 | #define FSNOTIFY_MARK_FLAG_OBJECT_PINNED 0x04 | ||
272 | unsigned int flags; /* vfsmount or inode mark? */ | 273 | unsigned int flags; /* vfsmount or inode mark? */ |
273 | void (*free_mark)(struct fsnotify_mark *mark); /* called on final put+free */ | 274 | void (*free_mark)(struct fsnotify_mark *mark); /* called on final put+free */ |
274 | }; | 275 | }; |
@@ -372,6 +373,8 @@ extern struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *gro | |||
372 | extern struct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt); | 373 | extern struct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group, struct vfsmount *mnt); |
373 | /* copy the values from old into new */ | 374 | /* copy the values from old into new */ |
374 | extern void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old); | 375 | extern void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old); |
376 | /* set the mask of a mark (might pin the object into memory */ | ||
377 | extern void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask); | ||
375 | /* attach the mark to both the group and the inode */ | 378 | /* attach the mark to both the group and the inode */ |
376 | extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, | 379 | extern int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group, |
377 | struct inode *inode, struct vfsmount *mnt, int allow_dups); | 380 | struct inode *inode, struct vfsmount *mnt, int allow_dups); |