inotify: only warn once for inotify problems

inotify will WARN() if it finds that the idr and the fsnotify internals
somehow got out of sync. It was only supposed to do this once but due
to this stupid bug it would warn every single time a problem was
detected.

Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Eric Paris and committed by Linus Torvalds 976ae32b 9e572cc9

+1 -1
+1 -1
fs/notify/inotify/inotify_fsnotify.c
··· 121 121 if (warned) 122 122 return 0; 123 123 124 - warned = false; 124 + warned = true; 125 125 entry = p; 126 126 ientry = container_of(entry, struct inotify_inode_mark_entry, fsn_entry); 127 127