Use WARN() in fs/
Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes part of the warning section for better reporting/collection. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
5cd2b459d3
commit
5c752ad9f3
@@ -1214,8 +1214,7 @@ void __brelse(struct buffer_head * buf)
|
||||
put_bh(buf);
|
||||
return;
|
||||
}
|
||||
printk(KERN_ERR "VFS: brelse: Trying to free free buffer\n");
|
||||
WARN_ON(1);
|
||||
WARN(1, KERN_ERR "VFS: brelse: Trying to free free buffer\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user