Lines Matching refs:generic_ref
256 static inline void btrfs_init_generic_ref(struct btrfs_ref *generic_ref, in btrfs_init_generic_ref() argument
259 generic_ref->action = action; in btrfs_init_generic_ref()
260 generic_ref->bytenr = bytenr; in btrfs_init_generic_ref()
261 generic_ref->len = len; in btrfs_init_generic_ref()
262 generic_ref->parent = parent; in btrfs_init_generic_ref()
265 static inline void btrfs_init_tree_ref(struct btrfs_ref *generic_ref, in btrfs_init_tree_ref() argument
270 generic_ref->real_root = mod_root ?: root; in btrfs_init_tree_ref()
272 generic_ref->tree_ref.level = level; in btrfs_init_tree_ref()
273 generic_ref->tree_ref.owning_root = root; in btrfs_init_tree_ref()
274 generic_ref->type = BTRFS_REF_METADATA; in btrfs_init_tree_ref()
277 generic_ref->skip_qgroup = true; in btrfs_init_tree_ref()
279 generic_ref->skip_qgroup = false; in btrfs_init_tree_ref()
283 static inline void btrfs_init_data_ref(struct btrfs_ref *generic_ref, in btrfs_init_data_ref() argument
289 generic_ref->real_root = mod_root ?: ref_root; in btrfs_init_data_ref()
291 generic_ref->data_ref.owning_root = ref_root; in btrfs_init_data_ref()
292 generic_ref->data_ref.ino = ino; in btrfs_init_data_ref()
293 generic_ref->data_ref.offset = offset; in btrfs_init_data_ref()
294 generic_ref->type = BTRFS_REF_DATA; in btrfs_init_data_ref()
297 generic_ref->skip_qgroup = true; in btrfs_init_data_ref()
299 generic_ref->skip_qgroup = false; in btrfs_init_data_ref()
352 struct btrfs_ref *generic_ref,
355 struct btrfs_ref *generic_ref,