mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
btrfs: remove unused btrfs_free_squota_rsv()
btrfs_free_squota_rsv() was added in commit
e85a0adacf
("btrfs: ensure releasing squota reserve on head refs")
but has remained unused since then.
Remove it as we don't seem to need it and was probably a leftover.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
506be4d565
commit
004641bd06
@ -4893,17 +4893,6 @@ void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans)
|
|||||||
xa_destroy(&trans->delayed_refs.dirty_extents);
|
xa_destroy(&trans->delayed_refs.dirty_extents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void btrfs_free_squota_rsv(struct btrfs_fs_info *fs_info, u64 root, u64 rsv_bytes)
|
|
||||||
{
|
|
||||||
if (btrfs_qgroup_mode(fs_info) != BTRFS_QGROUP_MODE_SIMPLE)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!is_fstree(root))
|
|
||||||
return;
|
|
||||||
|
|
||||||
btrfs_qgroup_free_refroot(fs_info, root, rsv_bytes, BTRFS_QGROUP_RSV_DATA);
|
|
||||||
}
|
|
||||||
|
|
||||||
int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
|
int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
|
||||||
const struct btrfs_squota_delta *delta)
|
const struct btrfs_squota_delta *delta)
|
||||||
{
|
{
|
||||||
|
@ -449,7 +449,6 @@ int btrfs_qgroup_trace_subtree_after_cow(struct btrfs_trans_handle *trans,
|
|||||||
struct btrfs_root *root, struct extent_buffer *eb);
|
struct btrfs_root *root, struct extent_buffer *eb);
|
||||||
void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans);
|
void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans);
|
||||||
bool btrfs_check_quota_leak(const struct btrfs_fs_info *fs_info);
|
bool btrfs_check_quota_leak(const struct btrfs_fs_info *fs_info);
|
||||||
void btrfs_free_squota_rsv(struct btrfs_fs_info *fs_info, u64 root, u64 rsv_bytes);
|
|
||||||
int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
|
int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
|
||||||
const struct btrfs_squota_delta *delta);
|
const struct btrfs_squota_delta *delta);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user