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)
commit642c5d34da53d8e9d4cdaee3cc48e9d85bca5b67
treed2c508c7e5a7a758d0583785b2424ab8858d37ac
parenta3e171a09cd4f67bb4c7ea93b552b543f19a308e
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