]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: allocate the btrfs_dio_private as part of the iomap dio bio
authorChristoph Hellwig <hch@lst.de>
Thu, 5 May 2022 20:11:15 +0000 (15:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:33 +0000 (17:17 +0200)
commita600e865cf02855b9104771b1bf26cdc176538e6
treed2c508c7e5a7a758d0583785b2424ab8858d37ac
parentc6983584fba22e84b633a7bd4c7eb9bf55f28a82
btrfs: allocate the btrfs_dio_private as part of the iomap dio bio

Create a new bio_set that contains all the per-bio private data needed
by btrfs for direct I/O and tell the iomap code to use that instead
of separately allocation the btrfs_dio_private structure.

Reviewed-by: Nikolay Borisov <nborisov@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/inode.c