btrfs: use precomputed end offsets at do_trimming()
authorFilipe Manana <fdmanana@suse.com>
Thu, 4 May 2023 11:04:21 +0000 (12:04 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:24 +0000 (13:59 +0200)
commitb77433b144621ebd5d0a6a3b6a3d454fa45b9309
tree496c61ce900aec6f91539f8e3632c9a95089b6e1
parent9085f42571e53b56b0087237d2e6258f47424938
btrfs: use precomputed end offsets at do_trimming()

The are two computations of end offsets at do_trimming() that are not
necessary, as they were previously computed and stored in local const
variables. So just use the variables instead, to make the source code
shorter and easier to read.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c