浏览代码

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>
Eric Paris 16 年之前
父节点
当前提交
976ae32be4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/notify/inotify/inotify_fsnotify.c

+ 1 - 1
fs/notify/inotify/inotify_fsnotify.c

@@ -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);