]> git.baikalelectronics.ru Git - kernel.git/commit
inotify: fix coalesce duplicate events into a single event in special case
authorWei Yongjun <yjwei@cn.fujitsu.com>
Wed, 14 Oct 2009 12:54:03 +0000 (20:54 +0800)
committerEric Paris <eparis@redhat.com>
Sun, 18 Oct 2009 19:49:38 +0000 (15:49 -0400)
commit4fa22f6cf31fd8c2f498c1581e503fd484ea54f9
treed88103aaf3e5ed019afef5b11d4241ecf3eb1cea
parent183d630f40e4b3bf7fb8d1a3d2c2e60863c51e0d
inotify: fix coalesce duplicate events into a single event in special case

If we do rename a dir entry, like this:

  rename("/tmp/ino7UrgoJ.rename1", "/tmp/ino7UrgoJ.rename2")
  rename("/tmp/ino7UrgoJ.rename2", "/tmp/ino7UrgoJ")

The duplicate events should be coalesced into a single event. But those two
events do not be coalesced into a single event, due to some bad check in
event_compare(). It can not match the two NULL inodes as the same event.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/notification.c