summaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2016-06-05 14:32:22 -0500
committerJens Axboe <axboe@fb.com>2016-06-07 13:41:38 -0600
commit4e1b2d52a80d79296a5d899d73249748dea71a53 (patch)
tree6afc956ec1cef2cd00832685225ccac6d8cec868 /include/linux/bio.h
parent6296b9604fcebc2dd8d6ec396de80b2da84d9700 (diff)
downloadop-kernel-dev-4e1b2d52a80d79296a5d899d73249748dea71a53.zip
op-kernel-dev-4e1b2d52a80d79296a5d899d73249748dea71a53.tar.gz
block, fs, drivers: remove REQ_OP compat defs and related code
This patch drops the compat definition of req_op where it matches the rq_flag_bits definitions, and drops the related old and compat code that allowed users to set either the op or flags for the operation. We also then store the operation in the bi_rw/cmd_flags field similar to how we used to store the bio ioprio where it sat in the upper bits of the field. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r--include/linux/bio.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 35108c2..0bbb2e3 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -44,9 +44,6 @@
#define BIO_MAX_SIZE (BIO_MAX_PAGES << PAGE_SHIFT)
#define BIO_MAX_SECTORS (BIO_MAX_SIZE >> 9)
-#define bio_op(bio) (op_from_rq_bits((bio)->bi_rw))
-#define bio_set_op_attrs(bio, op, flags) ((bio)->bi_rw |= (op | flags))
-
#define bio_prio(bio) (bio)->bi_ioprio
#define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio)
OpenPOWER on IntegriCloud