OSDN Git Service

btrfs: optimize variables size in btrfs_submit_compressed_read
authorAnand Jain <anand.jain@oracle.com>
Sat, 29 May 2021 09:48:34 +0000 (17:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:07 +0000 (15:19 +0200)
commit356b4a2dc151c65e5abce07b7c0e4a146769892b
treec19504172ac8781aae72356616bf0da3f06fe438
parent1d08ce58406d1cd6222fca72144146c7ee1450ec
btrfs: optimize variables size in btrfs_submit_compressed_read

Patch "btrfs: reduce compressed_bio member's types" reduced some
member's size. Declare the variables @compressed_len, @nr_pages and
@pg_index size as an unsigned int in the function
btrfs_submit_compressed_read.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c