bcache: comment on direct access to bvec table
All direct access to bvec table are safe even after multipage bvec is supported. Cc: linux-bcache@vger.kernel.org Acked-by: Coly Li <colyli@suse.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -432,6 +432,7 @@ static void do_btree_node_write(struct btree *b)
|
||||
|
||||
continue_at(cl, btree_node_write_done, NULL);
|
||||
} else {
|
||||
/* No problem for multipage bvec since the bio is just allocated */
|
||||
b->bio->bi_vcnt = 0;
|
||||
bch_bio_map(b->bio, i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user