fs: Use WARN(1,...)
PATCH 1/1 fs: Use WARN(1,...)
Use WARN(1,...) rather than printk followed by WARN_ON(1).
Signed-off-by Xu Wang <[email protected]>
--- fs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dcache.c +1 -1
@@ -1637,7 +1637,7 @@ static enum d_walk_ret umount_check(void *_data, struct dentry *dentry)if (dentry == _data && dentry->d_lockref.count ==1 )return D_WALK_CONTINUE ; - WARN(1, KERN_ERR "BUG: Dentry %p{i=%lx,n=%pd} " + WARN(1, "BUG: Dentry %p{i=%lx,n=%pd} " " still in use (%d) [unmount of %s %s]\n", dentry, dentry->d_inode ?
Signature · 1 line
2.17.1