mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
inotify: only warn once for inotify problems
commit 976ae32be4 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: Eric Paris <eparis@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cec3ad600c
commit
800c02837e
@@ -121,7 +121,7 @@ static int idr_callback(int id, void *p, void *data)
|
||||
if (warned)
|
||||
return 0;
|
||||
|
||||
warned = false;
|
||||
warned = true;
|
||||
entry = p;
|
||||
ientry = container_of(entry, struct inotify_inode_mark_entry, fsn_entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user