summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2021-05-29 11:48:35 +0200
committerDavid Sterba <dsterba@suse.com>2021-06-21 15:19:07 +0200
commit65b5355f77082804949390dc2629256c8c24f69d (patch)
treef64e9a4986350a828c9c07aaf2ee68302ac88038 /fs/btrfs/compression.c
parentbtrfs: optimize variables size in btrfs_submit_compressed_read (diff)
downloadlinux-65b5355f77082804949390dc2629256c8c24f69d.tar.xz
linux-65b5355f77082804949390dc2629256c8c24f69d.zip
btrfs: optimize variables size in btrfs_submit_compressed_write
Patch "btrfs: reduce compressed_bio member's types" reduced some member's size. Function arguments @len, @compressed_len and @nr_pages can be declared as unsigned int. 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index c527ae858d37..36731b598770 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -387,10 +387,10 @@ out:
* the end io hooks.
*/
blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
- unsigned long len, u64 disk_start,
- unsigned long compressed_len,
+ unsigned int len, u64 disk_start,
+ unsigned int compressed_len,
struct page **compressed_pages,
- unsigned long nr_pages,
+ unsigned int nr_pages,
unsigned int write_flags,
struct cgroup_subsys_state *blkcg_css)
{