From: John McCutchan Date: Tue, 6 Sep 2005 22:18:02 +0000 (-0700) Subject: [PATCH] inotify: fix event loss on hardlinked files X-Git-Tag: v2.6.14-rc1~646 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea6040b0eff07d3a9a4e2d248ac137c6ad02d42;p=pandora-kernel.git [PATCH] inotify: fix event loss on hardlinked files People have run into a problem when they do this: watch (file1, all_events); watch (file2, some_events); if file2 is a hard link to file1, some events will be missed because by default we replace the mask. The patch below adds a flag IN_MASK_ADD which will cause inotify to add to the existing mask if present. Signed-off-by: John McCutchan Signed-off-by: Robert Love Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed