md/raid5: use bdev_write_cache instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Nov 2022 10:10:37 +0000 (11:10 +0100)
committerSong Liu <song@kernel.org>
Mon, 14 Nov 2022 18:15:35 +0000 (10:15 -0800)
commitad831a16b08c3f1a1f28a56d2054313d7d521da9
tree8d80098ba5c9a78431379cd31d96681d3fc7fa68
parent341097ee53573e06ab9fc675d96a052385b851fa
md/raid5: use bdev_write_cache instead of open coding it

Use the bdev_write_cache instead of two equivalent open coded checks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5-cache.c
drivers/md/raid5-ppl.c