mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
76e5f6fe10
commit
3b86aeb295
+1
-1
@@ -812,7 +812,7 @@ zvol_request(struct request_queue *q, struct bio *bio)
|
||||
goto out2;
|
||||
}
|
||||
|
||||
if (bio->bi_rw & VDEV_REQ_DISCARD) {
|
||||
if (bio_is_discard(bio)) {
|
||||
error = zvol_discard(bio);
|
||||
goto out2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user