Commit 800c0283 authored by Eric Paris's avatar Eric Paris Committed by Greg Kroah-Hartman

inotify: only warn once for inotify problems

commit 976ae32b upstream.

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: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cec3ad60
...@@ -121,7 +121,7 @@ static int idr_callback(int id, void *p, void *data) ...@@ -121,7 +121,7 @@ static int idr_callback(int id, void *p, void *data)
if (warned) if (warned)
return 0; return 0;
warned = false; warned = true;
entry = p; entry = p;
ientry = container_of(entry, struct inotify_inode_mark_entry, fsn_entry); ientry = container_of(entry, struct inotify_inode_mark_entry, fsn_entry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment