]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't allocate a btrfs_bio for raid56 per-stripe bios
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Apr 2022 04:45:26 +0000 (06:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:12 +0000 (17:03 +0200)
commit0d54cab7e8964ba387f769fe23a6042a8b2d85f2
treeb080a4bda1d02e0e7cf04b89001c70aff35b03c0
parent797804cc37688c3dfa42ccbcc963dadd5d123b3a
btrfs: don't allocate a btrfs_bio for raid56 per-stripe bios

Except for the spurious initialization of ->device just after allocation
nothing uses the btrfs_bio, so just allocate a normal bio without extra
data.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c