diff --git a/fs/super.c b/fs/super.c index 954aeb80e202be0a40fc42eeca465c033ab1fc9a..7ea56de57d4b874a3d3737aa49dafa94715a6ff8 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1199,7 +1199,7 @@ int __sb_start_write(struct super_block *sb, int level, bool wait) else ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1); - WARN_ON(force_trylock & !ret); + WARN_ON(force_trylock && !ret); return ret; } EXPORT_SYMBOL(__sb_start_write);