Commit 65b5355f authored by Anand Jain's avatar Anand Jain Committed by David Sterba

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: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 356b4a2d
...@@ -387,10 +387,10 @@ static void end_compressed_bio_write(struct bio *bio) ...@@ -387,10 +387,10 @@ static void end_compressed_bio_write(struct bio *bio)
* the end io hooks. * the end io hooks.
*/ */
blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start, blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
unsigned long len, u64 disk_start, unsigned int len, u64 disk_start,
unsigned long compressed_len, unsigned int compressed_len,
struct page **compressed_pages, struct page **compressed_pages,
unsigned long nr_pages, unsigned int nr_pages,
unsigned int write_flags, unsigned int write_flags,
struct cgroup_subsys_state *blkcg_css) struct cgroup_subsys_state *blkcg_css)
{ {
......
...@@ -91,10 +91,10 @@ int btrfs_decompress_buf2page(const char *buf, unsigned long buf_start, ...@@ -91,10 +91,10 @@ int btrfs_decompress_buf2page(const char *buf, unsigned long buf_start,
struct bio *bio); struct bio *bio);
blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start, blk_status_t btrfs_submit_compressed_write(struct btrfs_inode *inode, u64 start,
unsigned long len, u64 disk_start, unsigned int len, u64 disk_start,
unsigned long compressed_len, unsigned int compressed_len,
struct page **compressed_pages, struct page **compressed_pages,
unsigned long nr_pages, unsigned int nr_pages,
unsigned int write_flags, unsigned int write_flags,
struct cgroup_subsys_state *blkcg_css); struct cgroup_subsys_state *blkcg_css);
blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment