Lines Matching refs:record

1897  * Inform qgroup to trace one dirty extent, its info is recorded in @record.
1904 * Return >0 for existing record, caller can free @record safely.
1909 struct btrfs_qgroup_extent_record *record)
1914 u64 bytenr = record->bytenr;
1920 trace_btrfs_qgroup_trace_extent(fs_info, record);
1931 if (record->data_rsv && !entry->data_rsv) {
1932 entry->data_rsv = record->data_rsv;
1934 record->data_rsv_refroot;
1940 rb_link_node(&record->node, parent_node, p);
1941 rb_insert_color(&record->node, &delayed_refs->dirty_extent_root);
2038 struct btrfs_qgroup_extent_record *record;
2044 record = kzalloc(sizeof(*record), GFP_NOFS);
2045 if (!record)
2049 record->bytenr = bytenr;
2050 record->num_bytes = num_bytes;
2051 record->old_roots = NULL;
2054 ret = btrfs_qgroup_trace_extent_nolock(fs_info, delayed_refs, record);
2057 kfree(record);
2060 return btrfs_qgroup_trace_extent_post(trans, record);
2297 * Now both @dst_path and @src_path have been populated, record the tree
2407 /* Now record this tree block and its counter part for qgroups */
2922 struct btrfs_qgroup_extent_record *record;
2936 record = rb_entry(node, struct btrfs_qgroup_extent_record,
2940 trace_btrfs_qgroup_account_extents(fs_info, record);
2946 ctx.bytenr = record->bytenr;
2951 * extent record.
2954 * we may have some record inserted during
2963 if (!record->old_roots) {
2968 record->old_roots = ctx.roots;
2985 ulist_del(record->old_roots, qgroup_to_skip,
2988 ret = btrfs_qgroup_account_extent(trans, record->bytenr,
2989 record->num_bytes,
2990 record->old_roots,
2992 record->old_roots = NULL;
2997 record->data_rsv_refroot,
2998 record->data_rsv,
3001 ulist_free(record->old_roots);
3005 kfree(record);
3525 * no limits exceeded, now record the reservation into all qgroups
4392 * (since quota was disabled), so record what we reserved into root.
4553 * Delete all swapped blocks record of @root.
4554 * Every record here means we skipped a full subtree scan for qgroup.
4584 * Add subtree roots record into @subvol_root.
4629 * record the bytenr after swap, so we do the swap here.