diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-10-17 19:14:11 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-11-25 00:10:18 +0300 |
| commit | afbc047ab0db1470c1d5ff82788a8a94431dc7e9 (patch) | |
| tree | 883a0b1b9cd89c371d87eadf51a49ca27e0c20c7 /include/linux/pps_kernel.h | |
| parent | 4ddb077378aa84d0872fdfce85e7a82fd805ee86 (diff) | |
| download | linux-afbc047ab0db1470c1d5ff82788a8a94431dc7e9.tar.xz | |
btrfs: avoid unnecessary reclaim calculation in priority_reclaim_metadata_space()
If the given ticket was already served (its ->bytes is 0), then we wasted
time calculating the metadata reclaim size. So calculate it only after we
checked the ticket was not yet served.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/pps_kernel.h')
0 files changed, 0 insertions, 0 deletions
