Commit 30704a0
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
0647bf5 ("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>1 parent 33a44f3 commit 30704a0
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2280 | 2280 | | |
2281 | 2281 | | |
2282 | 2282 | | |
2283 | | - | |
2284 | | - | |
2285 | | - | |
| 2283 | + | |
| 2284 | + | |
2286 | 2285 | | |
2287 | 2286 | | |
2288 | 2287 | | |
| |||
2291 | 2290 | | |
2292 | 2291 | | |
2293 | 2292 | | |
2294 | | - | |
| 2293 | + | |
2295 | 2294 | | |
2296 | 2295 | | |
2297 | 2296 | | |
2298 | 2297 | | |
2299 | | - | |
| 2298 | + | |
2300 | 2299 | | |
2301 | 2300 | | |
2302 | 2301 | | |
| |||
2324 | 2323 | | |
2325 | 2324 | | |
2326 | 2325 | | |
2327 | | - | |
| 2326 | + | |
2328 | 2327 | | |
2329 | 2328 | | |
2330 | 2329 | | |
| |||
0 commit comments