diff options
author | Chunwei Chen <[email protected]> | 2016-07-27 17:55:32 +0000 |
---|---|---|
committer | Ned Bass <[email protected]> | 2016-09-09 13:21:10 -0700 |
commit | 6ae0dbdc8a98263eae9d8f1e699a532d9c2971fa (patch) | |
tree | 07ba21e49f7f626c19e1df7da2755ef6a5782daf /include/sys | |
parent | a0591c4370b621d3962f6a8e44fe8ee0c12a8fc2 (diff) |
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 <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4892
Closes #4899
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/vdev_disk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/vdev_disk.h b/include/sys/vdev_disk.h index d5a1889d2..cf8028d2a 100644 --- a/include/sys/vdev_disk.h +++ b/include/sys/vdev_disk.h @@ -38,7 +38,7 @@ typedef struct vdev_disk { } vdev_disk_t; extern int vdev_disk_physio(struct block_device *, caddr_t, - size_t, uint64_t, int); + size_t, uint64_t, int, int); extern int vdev_disk_read_rootlabel(char *, char *, nvlist_t **); #endif /* _KERNEL */ |