]> git.baikalelectronics.ru Git - kernel.git/commit
mm/block: convert rw_page users to bio op use
authorMike Christie <mchristi@redhat.com>
Thu, 4 Aug 2016 20:23:34 +0000 (14:23 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 4 Aug 2016 20:25:33 +0000 (14:25 -0600)
commitbdc6d9be0d708dcea9fb32826072716099b6821a
treeee91e0a9e679e13cff54ede6b6b489627d72c1b1
parentb344ca8f8219eaecfd384c22a50efc0c644a4fa5
mm/block: convert rw_page users to bio op use

The rw_page users were not converted to use bio/req ops. As a result
bdev_write_page is not passing down REQ_OP_WRITE and the IOs will
be sent down as reads.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Fixes: 1eedc859c531 ("block, fs, drivers: remove REQ_OP compat defs and related code")
Modified by me to:

1) Drop op_flags passing into ->rw_page(), as we don't use it.
2) Make op_is_write() and friends safe to use for !CONFIG_BLOCK

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