diff options
author | Anand Jain <anand.jain@oracle.com> | 2021-05-29 12:48:34 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-06-21 16:19:07 +0300 |
commit | 356b4a2dc151c65e5abce07b7c0e4a146769892b (patch) | |
tree | c19504172ac8781aae72356616bf0da3f06fe438 /fs/btrfs/compression.c | |
parent | 1d08ce58406d1cd6222fca72144146c7ee1450ec (diff) | |
download | linux-356b4a2dc151c65e5abce07b7c0e4a146769892b.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 2114cf2c684d..c527ae858d37 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -669,9 +669,9 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); struct extent_map_tree *em_tree; struct compressed_bio *cb; - unsigned long compressed_len; - unsigned long nr_pages; - unsigned long pg_index; + unsigned int compressed_len; + unsigned int nr_pages; + unsigned int pg_index; struct page *page; struct bio *comp_bio; u64 cur_disk_byte = bio->bi_iter.bi_sector << 9; |