]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 4.8 compat: REQ_OP and bio_set_op_attrs()
authorChunwei Chen <david.chen@osnexus.com>
Wed, 27 Jul 2016 17:55:32 +0000 (17:55 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Jul 2016 21:48:19 +0000 (14:48 -0700)
commit3b86aeb2952c91aeb8ed0ebf9d5e43119fa537a0
tree37b94f2a75deb3e22ca75f050c23c67b9e7b82f1
parent76e5f6fe10ab8c9c8ae13e4c33ecb68f3d0ce5dc
Linux 4.8 compat: REQ_OP and bio_set_op_attrs()

New REQ_OP_* definitions have been introduced to separate the
WRITE, READ, and DISCARD operations from the flags.  This included
changing the encoding of bi_rw.  It places REQ_OP_* in high order
bits and other stuff in low order bits.  This encoding is done
through the new helper function bio_set_op_attrs.  For complete
details refer to:

https://github.com/torvalds/linux/commit/f215082
https://github.com/torvalds/linux/commit/4e1b2d5

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4892
Closes #4899
include/linux/blkdev_compat.h
module/zfs/vdev_disk.c
module/zfs/zvol.c