]> 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)
commit37b562d495cf0c3e32c708713529cb5e731a4f08
treed2c508c7e5a7a758d0583785b2424ab8858d37ac
parent817d9253da6d08fe083b13d3d596235608f2258a
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