]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: move events should indicate the event was on a child
authorEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 15:09:47 +0000 (11:09 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 18:57:54 +0000 (14:57 -0400)
commit6d4672a176a24fa998778bd123806542ec25ccdc
tree1156b8a138adef3698636bf28ad3a739c3c5bff3
parent0541c5dcc4ad87086bc97d93aa501616d3bd9020
fsnotify: move events should indicate the event was on a child

fsnotify tells its listeners explicitly when an event happened on the given
inode verses on the child of the given inode.  (see __fsnotify_parent)
However, the semantics of fsnotify_move() are such that we deliver events
directly to the two parent directories in question (old_dir and new_dir)
directly without using the __fsnotify_parent() call.  fsnotify should be
adding FS_EVENT_ON_CHILD for the notifications to these parents.

Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/fsnotify.h