]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use crypto_shash_digest() instead of open coding
authorEric Biggers <ebiggers@google.com>
Fri, 1 May 2020 06:51:59 +0000 (23:51 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:27 +0000 (11:25 +0200)
commit12b36b3893bd66f4a76d73d72e84dbe697f3e728
treefd5f401d3bfec680a75e5c2d59fd4e124a603316
parent83e1e14e32462470c8f918f7b769dfd6262563e1
btrfs: use crypto_shash_digest() instead of open coding

Use crypto_shash_digest() instead of crypto_shash_init() +
crypto_shash_update() + crypto_shash_final().  This is more efficient.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/disk-io.c
fs/btrfs/file-item.c
fs/btrfs/inode.c