diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-18 03:24:22 +0100 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 15:58:49 +0200 |
commit | 1201a5361b9bd6512ae01e6f2b7aa79d458cafb1 (patch) | |
tree | bfbb10b38b6b32b773a43cc371b5d31a9ce3fe51 /include | |
parent | fsnotify: clone existing events (diff) | |
download | linux-1201a5361b9bd6512ae01e6f2b7aa79d458cafb1.tar.xz 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')
-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 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 |