diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2024-11-14 11:04:27 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-01-13 16:53:14 +0300 |
commit | 3704db1013232465ee3db742dc31853c44daf68c (patch) | |
tree | c3e4f7d2b17b7c1a236a651c4fc297535a96d7b3 /fs/btrfs/delalloc-space.c | |
parent | bfcf6d04f8ee817b2cb7c238e0a14392a3245f45 (diff) | |
download | linux-3704db1013232465ee3db742dc31853c44daf68c.tar.xz |
btrfs: factor out btrfs_return_free_space()
Factor out a part of unpin_extent_range() that returns space back to the
space info, prioritizing global block reserve. Also, move the "len"
variable into the loop to clarify we don't need to carry it beyond an
iteration.
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>
Diffstat (limited to 'fs/btrfs/delalloc-space.c')
0 files changed, 0 insertions, 0 deletions