]> 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)
commit4041b974f25dea0e247728d91eca91f0874fa791
treeb080a4bda1d02e0e7cf04b89001c70aff35b03c0
parentc4d4c1261c25fca09f002edaa25479f664b521fc
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