]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid1: Fix a warning message in remove_wb()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Jun 2019 09:42:51 +0000 (12:42 +0300)
committerSong Liu <songliubraving@fb.com>
Wed, 26 Jun 2019 19:18:48 +0000 (12:18 -0700)
commit5ad2c5f84d9b44ca5316b045f35cffda0492e1e3
treea7cad43b003300fa4dd175b809fc982ced84a5dd
parentd5af47fdbb7fccea869ee740f4d9ab4d9725aa6b
md/raid1: Fix a warning message in remove_wb()

The WARN_ON() macro doesn't take an error message, it just takes a
condition.  I've changed this to use WARN(1, "...") instead.

Fixes: e30fc8a0127e ("md/raid1: fix potential data inconsistency issue with write behind device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid1.c