block: Add an explicit bio flag for bios that own their bvec
authorKent Overstreet <koverstreet@google.com>
Fri, 25 May 2012 20:03:11 +0000 (13:03 -0700)
committerKent Overstreet <koverstreet@google.com>
Sat, 23 Mar 2013 21:26:33 +0000 (14:26 -0700)
commita38352e0ac02dbbd4fa464dc22d1352b5fbd06fd
treecae9097633ac86ab3b32ee8db9dc2e847929ad06
parenta07876064a0b73ab5ef1ebcf14b1cf0231c07858
block: Add an explicit bio flag for bios that own their bvec

This is for the new bio splitting code. When we split a bio, if the
split occured on a bvec boundry we reuse the bvec for the new bio. But
that means bio_free() can't free it, hence the explicit flag.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
Acked-by: Tejun Heo <tj@kernel.org>
fs/bio.c
include/linux/bio.h
include/linux/blk_types.h