|
@@ -230,15 +230,11 @@ int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans,
|
|
struct btrfs_qgroup_inherit *inherit);
|
|
struct btrfs_qgroup_inherit *inherit);
|
|
void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info,
|
|
void btrfs_qgroup_free_refroot(struct btrfs_fs_info *fs_info,
|
|
u64 ref_root, u64 num_bytes);
|
|
u64 ref_root, u64 num_bytes);
|
|
-/*
|
|
|
|
- * TODO: Add proper trace point for it, as btrfs_qgroup_free() is
|
|
|
|
- * called by everywhere, can't provide good trace for delayed ref case.
|
|
|
|
- */
|
|
|
|
static inline void btrfs_qgroup_free_delayed_ref(struct btrfs_fs_info *fs_info,
|
|
static inline void btrfs_qgroup_free_delayed_ref(struct btrfs_fs_info *fs_info,
|
|
u64 ref_root, u64 num_bytes)
|
|
u64 ref_root, u64 num_bytes)
|
|
{
|
|
{
|
|
- btrfs_qgroup_free_refroot(fs_info, ref_root, num_bytes);
|
|
|
|
trace_btrfs_qgroup_free_delayed_ref(fs_info, ref_root, num_bytes);
|
|
trace_btrfs_qgroup_free_delayed_ref(fs_info, ref_root, num_bytes);
|
|
|
|
+ btrfs_qgroup_free_refroot(fs_info, ref_root, num_bytes);
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
|
|
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
|