]> granicus.if.org Git - zfs/commit
Linux 4.8 compat: Fix removal of bio->bi_rw member
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Aug 2016 18:22:30 +0000 (11:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Aug 2016 18:19:34 +0000 (11:19 -0700)
commitcf41432c70c2df282f0f4ed7647154f3f4972d34
tree8ff55f47cdce764a0de0571d605ea382219ed60d
parent689f093ebcfa0d57895495050d2b470ed2bef52e
Linux 4.8 compat: Fix removal of bio->bi_rw member

All users of bio->bi_rw have been replaced with compatibility wrappers.
This allows the kernel specific logic to be abstracted away, and for
each of the supported cases to be documented with the wrapper.  The
updated interfaces are as follows:

* void blk_queue_set_write_cache(struct request_queue *, bool, bool)
* boolean_t bio_is_flush(struct bio *)
* boolean_t bio_is_fua(struct bio *)
* boolean_t bio_is_discard(struct bio *)
* boolean_t bio_is_secure_erase(struct bio *)
* VDEV_WRITE_FLUSH_FUA

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #4951
config/kernel-bio-op.m4 [new file with mode: 0644]
config/kernel.m4
include/linux/blkdev_compat.h
module/zfs/zvol.c