Lines Matching refs:preftrees
121 struct preftrees { struct
388 struct preftrees *preftrees, int level, u64 parent, in add_direct_ref() argument
392 return add_prelim_ref(fs_info, &preftrees->direct, 0, NULL, level, in add_direct_ref()
398 struct preftrees *preftrees, u64 root_id, in add_indirect_ref() argument
403 struct preftree *tree = &preftrees->indirect; in add_indirect_ref()
406 tree = &preftrees->indirect_missing_keys; in add_indirect_ref()
622 struct preftrees *preftrees, in resolve_indirect_refs() argument
643 while ((rnode = rb_first(&preftrees->indirect.root))) { in resolve_indirect_refs()
653 rb_erase(&ref->rbnode, &preftrees->indirect.root); in resolve_indirect_refs()
654 preftrees->indirect.count--; in resolve_indirect_refs()
675 prelim_ref_insert(fs_info, &preftrees->direct, ref, in resolve_indirect_refs()
704 prelim_ref_insert(fs_info, &preftrees->direct, in resolve_indirect_refs()
712 prelim_ref_insert(fs_info, &preftrees->direct, ref, NULL); in resolve_indirect_refs()
730 struct preftrees *preftrees, bool lock) in add_missing_keys() argument
734 struct preftree *tree = &preftrees->indirect_missing_keys; in add_missing_keys()
764 prelim_ref_insert(fs_info, &preftrees->indirect, ref, NULL); in add_missing_keys()
776 struct preftrees *preftrees, u64 *total_refs, in add_delayed_refs() argument
819 ret = add_indirect_ref(fs_info, preftrees, ref->root, in add_delayed_refs()
831 ret = add_direct_ref(fs_info, preftrees, ref->level + 1, in add_delayed_refs()
863 ret = add_indirect_ref(fs_info, preftrees, ref->root, in add_delayed_refs()
874 ret = add_direct_ref(fs_info, preftrees, 0, ref->parent, in add_delayed_refs()
903 int *info_level, struct preftrees *preftrees, in add_inline_refs() argument
963 ret = add_direct_ref(fs_info, preftrees, in add_inline_refs()
974 ret = add_direct_ref(fs_info, preftrees, 0, offset, in add_inline_refs()
979 ret = add_indirect_ref(fs_info, preftrees, offset, in add_inline_refs()
1003 ret = add_indirect_ref(fs_info, preftrees, root, in add_inline_refs()
1027 int info_level, struct preftrees *preftrees, in add_keyed_refs() argument
1059 ret = add_direct_ref(fs_info, preftrees, in add_keyed_refs()
1071 ret = add_direct_ref(fs_info, preftrees, 0, in add_keyed_refs()
1078 ret = add_indirect_ref(fs_info, preftrees, key.offset, in add_keyed_refs()
1103 ret = add_indirect_ref(fs_info, preftrees, root, in add_keyed_refs()
1158 struct preftrees preftrees = { local
1231 &preftrees, &total_refs, sc);
1252 &info_level, &preftrees,
1257 &preftrees, sc);
1265 ret = add_missing_keys(fs_info, &preftrees, path->skip_locking == 0);
1269 WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect_missing_keys.root));
1271 ret = resolve_indirect_refs(fs_info, path, time_seq, &preftrees,
1276 WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect.root));
1285 node = rb_first(&preftrees.direct.root);
1370 prelim_release(&preftrees.direct);
1371 prelim_release(&preftrees.indirect);
1372 prelim_release(&preftrees.indirect_missing_keys);