diff options
| author | Filipe Manana <[email protected]> | 2020-06-09 11:19:33 +0100 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-07-27 12:55:21 +0200 |
| commit | 46d4dac888ebe083d61f18acb16a6988e9062268 (patch) | |
| tree | 243dce5cf88ca2fd4ef856855f46c63f523e618c /tools/perf/scripts/python/flamegraph.py | |
| parent | ab483009216ed556fb124176cae75242f8da0e2e (diff) | |
btrfs: remove the start argument from btrfs_free_reserved_data_space_noquota()
The start argument for btrfs_free_reserved_data_space_noquota() is only
used to make sure the amount of bytes we decrement from the bytes_may_use
counter of the data space_info object is aligned to the filesystem's
sector size. It serves no other purpose.
All its current callers always pass a length argument that is already
aligned to the sector size, so we can make the start argument go away.
In fact its presence makes it impossible to use it in a context where we
just want to free a number of bytes for a range for which either we do
not know its start offset or for freeing multiple ranges at once (which
are not contiguous).
This change is preparatory work for a patch (third patch in this series)
that makes relocation of data block groups that are not full reserve less
data space.
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions