block: get rid of bio_rw and READA
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jul 2016 09:28:41 +0000 (11:28 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 20 Jul 2016 23:37:01 +0000 (17:37 -0600)
commit70246286e94c335b5bea0cbc68a17a96dd620281
tree6333c1ba1ce00b3a3a2254acc34db552ae9c4159
parent3f40bf2c89223192535a72a4d49ce7d68d8ed9dd
block: get rid of bio_rw and READA

These two are confusing leftover of the old world order, combining
values of the REQ_OP_ and REQ_ namespaces.  For callers that don't
special case we mostly just replace bi_rw with bio_data_dir or
op_is_write, except for the few cases where a switch over the REQ_OP_
values makes more sense.  Any check for READA is replaced with an
explicit check for REQ_RAHEAD.  Also remove the READA alias for
REQ_RAHEAD.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
26 files changed:
drivers/block/brd.c
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_worker.c
drivers/block/null_blk.c
drivers/block/umem.c
drivers/lightnvm/rrpc.c
drivers/md/dm-raid1.c
drivers/md/dm-snap.c
drivers/md/dm-zero.c
drivers/md/dm.c
drivers/md/raid1.c
drivers/md/raid5.c
drivers/nvme/host/lightnvm.c
drivers/staging/lustre/lustre/llite/lloop.c
fs/buffer.c
fs/f2fs/checkpoint.c
fs/f2fs/gc.c
fs/f2fs/node.c
fs/gfs2/bmap.c
fs/gfs2/dir.c
fs/gfs2/meta_io.c
fs/reiserfs/stree.c
fs/udf/dir.c
fs/udf/directory.c
include/linux/fs.h
include/trace/events/f2fs.h