]> git.baikalelectronics.ru Git - kernel.git/commit
block: simple improvements for bio->flags
authorNeilBrown <neilb@suse.com>
Fri, 7 Apr 2017 01:10:44 +0000 (11:10 +1000)
committerJens Axboe <axboe@fb.com>
Fri, 7 Apr 2017 15:39:29 +0000 (09:39 -0600)
commitb8d08c81ee4e7a12c035ac6cf3d2fe8b32c94b65
treecdc69a1d6bf1ab83ce3cb1e1fa9a348a5b83d92e
parentcf4734c7a8719f1f2525cff5eac9dfeac5a2e7bd
block: simple improvements for bio->flags

The comment for the 'flags' field of 'bio' mentions
"command" which is no longer stored there, and doesn't
mention the bvec pool number, which is.

BIO_RESET_BITS is set in such a way that it would need to be
updated if new bits were added, which is easy to miss.

BVEC_POOL_BITS is larger than needed.  The BVEC_POOL_IDX()
ranges from 0 to 6, so 3 bits are sufficient.

This patch make improvements in each of these areas.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blk_types.h