]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: push the NODATASUM check into btrfs_lookup_bio_sums
authorJosef Bacik <josef@toxicpanda.com>
Fri, 16 Oct 2020 15:29:14 +0000 (11:29 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:39 +0000 (15:53 +0100)
commit334c16d82cfe180f7b262a6f8ae2d9379f032b18
treefcb81b2facd3c4c1d68a0ef34a6200d091b3e210
parentd70bf7484f728704454c0566814458bf6d6c7cf3
btrfs: push the NODATASUM check into btrfs_lookup_bio_sums

When we move to being able to handle NULL csum_roots it'll be cleaner to
just check in btrfs_lookup_bio_sums instead of at all of the caller
locations, so push the NODATASUM check into it as well so it's unified.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/file-item.c
fs/btrfs/inode.c