btrfs: drop unused argument of calcu_metadata_size()
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 23 Apr 2024 10:10:29 +0000 (12:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:08 +0000 (21:31 +0200)
commit30704a0d562bbed00b3ca4bb14108d75c3ee9108
tree2ef78294dc55b9a7d7a3aa19307632b75557b0e0
parent33a44f3760509c6b4df595774f1232f4c1b81e65
btrfs: drop unused argument of calcu_metadata_size()

calcu_metadata_size() has a "reserve" argument, but the only caller always
set it to "1". The other usage (reserve = 0) is dropped by a commit
0647bf564f1e ("Btrfs: improve forever loop when doing balance relocation"),
which is more than 10 years ago. Drop the argument and simplify the code.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c