]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: allocate dio_data on stack
authorChristoph Hellwig <hch@lst.de>
Thu, 5 May 2022 20:11:12 +0000 (15:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:32 +0000 (17:17 +0200)
commita7fa42ffd43a638330485b5edbbc8f6adf6d2460
tree71a4f05bbaadc3aeb9a552d339c9a679a4b490ce
parent3a1f9874233262b96aa06b1119687ee984722472
btrfs: allocate dio_data on stack

Make use of the new iomap_iter->private field to avoid a memory
allocation per iomap range.

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