]> 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)
commit5c4c5f92c19c0e284b67d18e0d462860848ebadc
tree71a4f05bbaadc3aeb9a552d339c9a679a4b490ce
parent284086efdb3bbf0dc91055a960b7ccf4c335b365
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