bdi: remove BDI_CAP_SYNCHRONOUS_IO
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:36 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commita8b456d01cd6b37191f14248f3e2bdbe5ce3a89e
tree409f35af00eba0691be18217ce570d41751ab593
parented7b6b4f6e915cb0bc52d0000bcc63168867b6ac
bdi: remove BDI_CAP_SYNCHRONOUS_IO

BDI_CAP_SYNCHRONOUS_IO is only checked in the swap code, and used to
decided if ->rw_page can be used on a block device.  Just check up for
the method instead.  The only complication is that zram needs a second
set of block_device_operations as it can switch between modes that
actually support ->rw_page and those who don't.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/brd.c
drivers/block/zram/zram_drv.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
include/linux/backing-dev.h
mm/swapfile.c