summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/btree.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-12-18 20:22:09 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-06 09:18:00 -0700
commitc2421edf5f9151d0eb28affbf76e9e4f8ddd03c6 (patch)
tree2b766d69e02c2941c2996e2902b54fc859625751 /drivers/md/bcache/btree.c
parent8f50e358153dd68182c714626be4a90b64179cf4 (diff)
downloadblackbird-obmc-linux-c2421edf5f9151d0eb28affbf76e9e4f8ddd03c6.tar.gz
blackbird-obmc-linux-c2421edf5f9151d0eb28affbf76e9e4f8ddd03c6.zip
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>
Diffstat (limited to 'drivers/md/bcache/btree.c')
-rw-r--r--drivers/md/bcache/btree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index 81e8dc3dbe5e..02a4cf646fdc 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -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);
OpenPOWER on IntegriCloud