Lines Matching refs:num_bytes

1013 				    u64 num_bytes, int sign)  in __qgroup_excl_accounting()  argument
1025 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
1026 qgroup->rfer_cmpr += sign * num_bytes; in __qgroup_excl_accounting()
1028 WARN_ON(sign < 0 && qgroup->excl < num_bytes); in __qgroup_excl_accounting()
1029 qgroup->excl += sign * num_bytes; in __qgroup_excl_accounting()
1030 qgroup->excl_cmpr += sign * num_bytes; in __qgroup_excl_accounting()
1032 qgroup->reserved -= num_bytes; in __qgroup_excl_accounting()
1048 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
1049 qgroup->rfer_cmpr += sign * num_bytes; in __qgroup_excl_accounting()
1050 WARN_ON(sign < 0 && qgroup->excl < num_bytes); in __qgroup_excl_accounting()
1051 qgroup->excl += sign * num_bytes; in __qgroup_excl_accounting()
1053 qgroup->reserved -= num_bytes; in __qgroup_excl_accounting()
1054 qgroup->excl_cmpr += sign * num_bytes; in __qgroup_excl_accounting()
1471 u64 bytenr, u64 num_bytes, in btrfs_qgroup_record_ref() argument
1486 oper->num_bytes = num_bytes; in btrfs_qgroup_record_ref()
1551 oper->num_bytes, sign); in qgroup_excl_accounting()
1799 u64 root_to_skip, u64 num_bytes, in qgroup_adjust_counters() argument
1818 qg->rfer += num_bytes; in qgroup_adjust_counters()
1819 qg->rfer_cmpr += num_bytes; in qgroup_adjust_counters()
1828 qg->rfer -= num_bytes; in qgroup_adjust_counters()
1829 qg->rfer_cmpr -= num_bytes; in qgroup_adjust_counters()
1850 qg->excl -= num_bytes; in qgroup_adjust_counters()
1851 qg->excl_cmpr -= num_bytes; in qgroup_adjust_counters()
1861 qg->excl += num_bytes; in qgroup_adjust_counters()
1862 qg->excl_cmpr += num_bytes; in qgroup_adjust_counters()
2046 qgroup_adjust_counters(fs_info, oper->ref_root, oper->num_bytes, in qgroup_shared_accounting()
2116 qg->excl += oper->num_bytes; in qgroup_subtree_accounting()
2117 qg->excl_cmpr += oper->num_bytes; in qgroup_subtree_accounting()
2137 qg->excl += oper->num_bytes; in qgroup_subtree_accounting()
2138 qg->excl_cmpr += oper->num_bytes; in qgroup_subtree_accounting()
2487 int btrfs_qgroup_reserve(struct btrfs_root *root, u64 num_bytes) in btrfs_qgroup_reserve() argument
2500 if (num_bytes == 0) in btrfs_qgroup_reserve()
2529 qg->reserved + (s64)qg->rfer + num_bytes > in btrfs_qgroup_reserve()
2536 qg->reserved + (s64)qg->excl + num_bytes > in btrfs_qgroup_reserve()
2560 qg->reserved += num_bytes; in btrfs_qgroup_reserve()
2568 void btrfs_qgroup_free(struct btrfs_root *root, u64 num_bytes) in btrfs_qgroup_free() argument
2581 if (num_bytes == 0) in btrfs_qgroup_free()
2606 qg->reserved -= num_bytes; in btrfs_qgroup_free()
2646 u64 num_bytes; in qgroup_rescan_leaf() local
2694 num_bytes = fs_info->extent_root->nodesize; in qgroup_rescan_leaf()
2696 num_bytes = found.offset; in qgroup_rescan_leaf()
2716 ret = qgroup_adjust_counters(fs_info, 0, num_bytes, qgroups, in qgroup_rescan_leaf()