diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-28 13:17:55 -0700 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 14:15:27 -0700 |
commit | 054bdf646e36c2f7dc1bf6bc6209dbbb5909164b (patch) | |
tree | acd9989fd9e6f5c6d3c985e34e984081a33cbdc3 /include/linux/blk_types.h | |
parent | block: Convert integrity to bvec_alloc_bs() (diff) | |
download | linux-054bdf646e36c2f7dc1bf6bc6209dbbb5909164b.tar.gz linux-054bdf646e36c2f7dc1bf6bc6209dbbb5909164b.tar.bz2 linux-054bdf646e36c2f7dc1bf6bc6209dbbb5909164b.zip |
block: Add bio_advance()
This is prep work for immutable bio vecs; we first want to centralize
where bvecs are modified.
Next two patches convert some existing code to use this function.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index cdf11191e645..c178d25e588b 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -197,6 +197,8 @@ enum rq_flag_bits { REQ_SECURE) #define REQ_CLONE_MASK REQ_COMMON_MASK +#define BIO_NO_ADVANCE_ITER_MASK (REQ_DISCARD|REQ_WRITE_SAME) + /* This mask is used for both bio and request merge checking */ #define REQ_NOMERGE_FLAGS \ (REQ_NOMERGE | REQ_STARTED | REQ_SOFTBARRIER | REQ_FLUSH | REQ_FUA) |