]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: clean up do_btree_node_write a bit
authorChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 07:02:59 +0000 (09:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:26:11 +0000 (09:26 -0600)
commit168ddf25df71240b3900e7d8efe633b4284da9a6
tree9ea6978f7b16e0f4a8925f4ecb57215b838281ee
parent3ac0b6fcb7867aaf99f3e5187cd2319635a93155
bcache: clean up do_btree_node_write a bit

Use a variable containing the buffer address instead of the to be
removed integer iterator from bio_for_each_segment_all.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c