]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use bio_kmalloc in __alloc_device
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:32 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commitb8bc4e81926fe64e8c994128a423a552d9023e36
tree71620682fda2b2975f5f632c3f106bc1fc2b1d21
parenteb8b6c684d9dfb9a3c60564a7bad745c44ef50fc
btrfs: use bio_kmalloc in __alloc_device

Use bio_kmalloc instead of open coding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/volumes.c