summaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 21:24:22 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:49 -0400
commit1201a5361b9bd6512ae01e6f2b7aa79d458cafb1 (patch)
treebfbb10b38b6b32b773a43cc371b5d31a9ce3fe51 /include/linux/fsnotify_backend.h
parentb4e4e1407312ae5a267ed7d716e6d4e7120a8430 (diff)
downloadblackbird-op-linux-1201a5361b9bd6512ae01e6f2b7aa79d458cafb1.tar.gz
blackbird-op-linux-1201a5361b9bd6512ae01e6f2b7aa79d458cafb1.zip
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 3a7fff235539..427f6ffab127 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
OpenPOWER on IntegriCloud