Lines Matching refs:dir_gen

2017 			 u64 *dir, u64 *dir_gen, struct fs_path *name)  in get_first_ref()  argument
2069 if (dir_gen) { in get_first_ref()
2070 ret = get_inode_gen(root, parent_dir, dir_gen); in get_first_ref()
2120 static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, in will_overwrite_ref() argument
2132 ret = is_inode_existent(sctx, dir, dir_gen, NULL, &parent_root_dir_gen); in will_overwrite_ref()
2145 parent_root_dir_gen != dir_gen) in will_overwrite_ref()
2183 u64 dir, u64 dir_gen, in did_overwrite_ref() argument
2195 ret = is_inode_existent(sctx, dir, dir_gen, &send_root_dir_gen, NULL); in did_overwrite_ref()
2203 if (dir != BTRFS_FIRST_FREE_OBJECTID && send_root_dir_gen != dir_gen) in did_overwrite_ref()
2258 u64 dir_gen; in did_overwrite_first_ref() local
2267 ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); in did_overwrite_first_ref()
2271 ret = did_overwrite_ref(sctx, dir, dir_gen, ino, gen, in did_overwrite_first_ref()
3019 u64 dir_gen; member
3064 new->dir_gen = ref->dir_gen; in dup_ref()
3112 u64 dir_ino, u64 dir_gen) in add_orphan_dir_info() argument
3125 else if (dir_gen < entry->gen) in add_orphan_dir_info()
3127 else if (dir_gen > entry->gen) in add_orphan_dir_info()
3137 odi->gen = dir_gen; in add_orphan_dir_info()
3189 static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen) in can_rmdir() argument
3209 odi = get_orphan_dir_info(sctx, dir, dir_gen); in can_rmdir()
3283 dm->rmdir_gen = dir_gen; in can_rmdir()
3308 odi = add_orphan_dir_info(sctx, dir, dir_gen); in can_rmdir()
3312 odi->gen = dir_gen; in can_rmdir()
3643 ret = cache_dir_utimes(sctx, cur->dir, cur->dir_gen); in apply_dir_move()
3967 u64 ino_gen = parent_ref->dir_gen; in wait_for_parent_move()
4075 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path()
4143 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, ref->full_path); in refresh_ref_path()
4264 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen, NULL, NULL); in process_recorded_refs()
4276 ret = will_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
4376 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen, NULL, NULL); in process_recorded_refs()
4526 ret = did_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
4582 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen, NULL, NULL); in process_recorded_refs()
4588 ret = cache_dir_utimes(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
4593 ret = can_rmdir(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
4598 cur->dir_gen, valid_path); in process_recorded_refs()
4628 if (data->dir_gen > ref->dir_gen) in rbtree_ref_comp()
4630 if (data->dir_gen < ref->dir_gen) in rbtree_ref_comp()
4652 struct fs_path *name, u64 dir, u64 dir_gen, in record_ref_in_tree() argument
4671 ret = get_cur_path(sctx, dir, dir_gen, path); in record_ref_in_tree()
4679 ref->dir_gen = dir_gen; in record_ref_in_tree()
4701 u64 dir_gen; in record_new_ref_if_needed() local
4703 ret = get_inode_gen(sctx->send_root, dir, &dir_gen); in record_new_ref_if_needed()
4708 data.dir_gen = dir_gen; in record_new_ref_if_needed()
4716 &sctx->new_refs, name, dir, dir_gen, in record_new_ref_if_needed()
4731 u64 dir_gen; in record_deleted_ref_if_needed() local
4733 ret = get_inode_gen(sctx->parent_root, dir, &dir_gen); in record_deleted_ref_if_needed()
4738 data.dir_gen = dir_gen; in record_deleted_ref_if_needed()
4747 dir_gen, sctx); in record_deleted_ref_if_needed()