]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid0: Fix an error message in raid0_make_request()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Sep 2019 06:00:31 +0000 (09:00 +0300)
committerSong Liu <songliubraving@fb.com>
Thu, 24 Oct 2019 22:22:40 +0000 (15:22 -0700)
commit4689cfe4a35080e03ce444e9c2351875fe9860ef
treec4fbde661edf5d27a3103f53ab397f34f36f1c96
parent5933a6bd8a7d597bf33a6a59ebf4c769e961e404
md/raid0: Fix an error message in raid0_make_request()

The first argument to WARN() is supposed to be a condition.  The
original code will just print the mdname() instead of the full warning
message.

Fixes: 6429a94871e8 ("md/raid0: avoid RAID0 data corruption due to layout confusion.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid0.c