]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: switch to on-stack csum buffer in csum_tree_block
authorDavid Sterba <dsterba@suse.com>
Mon, 6 Nov 2017 18:23:00 +0000 (19:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:14 +0000 (16:08 +0100)
commit95101b23d6349ad8dd3ec9f516e33ee89d86af52
treeee567dbd47313c1f74a4996b5c3373a6b0162ae3
parenta184d90c19a51b9c1cc33693fb691e7a4fbfec60
btrfs: switch to on-stack csum buffer in csum_tree_block

The maximum size of a checksum buffer is known, BTRFS_CSUM_SIZE, and we
don't have to allocate it dynamically. This code path is not used at all
as we have only the crc32c and use an on-stack buffer already.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c