]> git.baikalelectronics.ru Git - kernel.git/commit
block/mm: make bdev_ops->rw_page() take a bool for read/write
authorJens Axboe <axboe@fb.com>
Fri, 5 Aug 2016 14:11:04 +0000 (08:11 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 7 Aug 2016 20:41:02 +0000 (14:41 -0600)
commit19ab1e9ec5b84db2d623a7db72fba29bd63026af
tree86b0c6102a4b01c4609a199b783f990e78959b72
parentb8007ef35f976518fe256c073cda0820b4c53d8e
block/mm: make bdev_ops->rw_page() take a bool for read/write

Commit bdc6d9be0d70 changed it from an 'rw' flags type to the
newer ops based interface, but now we're effectively leaking
some bdev internals to the rest of the kernel. Since we only
care about whether it's a read or a write at that level, just
pass in a bool 'is_write' parameter instead.

Then we can also move op_is_write() and friends back under
CONFIG_BLOCK protection.

Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/brd.c
drivers/block/zram/zram_drv.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
fs/block_dev.c
fs/mpage.c
include/linux/blk_types.h
include/linux/blkdev.h
include/linux/fs.h
include/linux/pagemap.h
mm/filemap.c