Filipe Manana 46d4dac888 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 <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-07-27 12:55:21 +02:00
..
2020-03-23 17:02:00 +01:00
2020-07-07 14:10:33 -07:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:37 +02:00
2020-07-24 14:11:43 -07:00
2019-11-18 23:43:44 +01:00
2020-03-23 17:01:43 +01:00
2020-01-20 16:40:55 +01:00
2020-05-25 11:25:37 +02:00
2019-11-18 17:51:51 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:36 +02:00
2020-06-02 19:59:25 -07:00
2020-05-25 11:25:36 +02:00