diff options
author | Eric Paris | 2009-12-18 02:12:05 +0100 |
---|---|---|
committer | Eric Paris | 2010-07-28 15:58:17 +0200 |
commit | 9e1c74321d87a8b079f04d89e750b39a43365e1f (patch) | |
tree | 2513ce9eaa620b50c32be3dbe2763bcb692f99cb /include | |
parent | audit: do not get and put just to free a watch (diff) | |
download | kernel-qcow2-linux-9e1c74321d87a8b079f04d89e750b39a43365e1f.tar.gz kernel-qcow2-linux-9e1c74321d87a8b079f04d89e750b39a43365e1f.tar.xz kernel-qcow2-linux-9e1c74321d87a8b079f04d89e750b39a43365e1f.zip |
fsnotify: duplicate fsnotify_mark_entry data between 2 marks
Simple copy fsnotify information from one mark to another in preparation
for the second mark to replace the first.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-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 8f8341e9f021..390516732956 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -342,6 +342,8 @@ extern void fsnotify_recalc_inode_mask(struct inode *inode); extern void fsnotify_init_mark(struct fsnotify_mark_entry *entry, void (*free_mark)(struct fsnotify_mark_entry *entry)); /* find (and take a reference) to a mark associated with group and inode */ extern struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_group *group, struct inode *inode); +/* copy the values from old into new */ +extern void fsnotify_duplicate_mark(struct fsnotify_mark_entry *new, struct fsnotify_mark_entry *old); /* attach the mark to both the group and the inode */ extern int fsnotify_add_mark(struct fsnotify_mark_entry *entry, struct fsnotify_group *group, struct inode *inode); /* given a mark, flag it to be freed when all references are dropped */ |