]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: derive compression type from extent map during reads
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Tue, 26 Apr 2022 13:47:34 +0000 (08:47 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:31 +0000 (17:17 +0200)
commit99fad3999b0456a2053567292bc4abdd8301f79e
treeeb0fc22f642105f84425b422aac58943f561b057
parentffff8457b4260a8088a1cbf800678f131fcf4f7e
btrfs: derive compression type from extent map during reads

Derive the compression type from extent map as opposed to the bio flags
passed. This makes it more precise and not reliant on function
parameters.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/inode.c