OSDN Git Service

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)
commit71a635516ca521931be418827150f782b0a03ae7
treeee567dbd47313c1f74a4996b5c3373a6b0162ae3
parent343e4fc1c60971b0734de26dbbd475d433950982
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