summaryrefslogtreecommitdiff
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-18 02:24:22 (GMT)
committerEric Paris <eparis@redhat.com>2010-07-28 13:58:49 (GMT)
commit1201a5361b9bd6512ae01e6f2b7aa79d458cafb1 (patch)
treebfbb10b38b6b32b773a43cc371b5d31a9ce3fe51 /include/linux/fsnotify_backend.h
parentb4e4e1407312ae5a267ed7d716e6d4e7120a8430 (diff)
downloadlinux-fsl-qoriq-1201a5361b9bd6512ae01e6f2b7aa79d458cafb1.tar.xz
fsnotify: replace an event on a list
fanotify would like to clone events already on its notification list, make changes to the new event, and then replace the old event on the list with the new event. This patch implements the replace functionality of that process. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index 3a7fff2..427f6ff 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -365,6 +365,8 @@ extern struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32
/* fanotify likes to change events after they are on lists... */
extern struct fsnotify_event *fsnotify_clone_event(struct fsnotify_event *old_event);
+extern int fsnotify_replace_event(struct fsnotify_event_holder *old_holder,
+ struct fsnotify_event *new_event);
#else