]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
btrfs: Remove isize local variable in compress_file_range
authorNikolay Borisov <nborisov@suse.com>
Thu, 3 Jan 2019 08:50:00 +0000 (10:50 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:19 +0000 (14:13 +0100)
commit62b37622718c87db3d992fe03b25f6f3b18264f1
tree6dbe0de9b3fd696fe79f028d96372235f8fc40bc
parent532425ff9e137af0cb98964475eccb72202bd514
btrfs: Remove isize local variable in compress_file_range

It's used only once so just inline the call to i_size_read. The
semantics regarding the inode size are not changed, the pages in the
range are locked and i_size cannot change between the time it was set
and used.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c