btrfs: simplify variables in btrfs_block_rsv_refill()
authorFilipe Manana <fdmanana@suse.com>
Tue, 21 Mar 2023 11:13:48 +0000 (11:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:19 +0000 (18:01 +0200)
commit4e8313e53c83d11510b9f323861a6f83757529ed
treed22a38eb655b7f760c5305f461bff1f3f3c8df65
parent4a6f5ccac52485226e7cade3dd7758f1a3ed8fa5
btrfs: simplify variables in btrfs_block_rsv_refill()

At btrfs_block_rsv_refill(), there's no point in initializing the
'num_bytes' variable to 0 and then, after taking the block reserve's
spinlock, initializing it to the value of the 'min_reserved' parameter.

So just get rid of the 'num_bytes' local variable and rename the
'min_reserved' parameter to 'num_bytes'.

Reviewed-by: Josef Bacik <josef@toxicpanda.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/block-rsv.c
fs/btrfs/block-rsv.h