Lines Matching refs:cur

861 	u32 cur = 0;  in iterate_inode_ref()  local
897 while (cur < total) { in iterate_inode_ref()
901 iref = (struct btrfs_inode_ref *)(ptr + cur); in iterate_inode_ref()
907 extref = (struct btrfs_inode_extref *)(ptr + cur); in iterate_inode_ref()
946 cur += elem_size + name_len; in iterate_inode_ref()
984 u32 cur; in iterate_dir_item() local
1008 cur = 0; in iterate_dir_item()
1013 while (cur < total) { in iterate_dir_item()
1065 cur += len; in iterate_dir_item()
2038 struct name_cache_entry *cur; in name_cache_search() local
2044 list_for_each_entry(cur, nce_head, radix_list) { in name_cache_search()
2045 if (cur->ino == ino && cur->gen == gen) in name_cache_search()
2046 return cur; in name_cache_search()
2772 struct recorded_ref *cur; in __free_recorded_refs() local
2775 cur = list_entry(head->next, struct recorded_ref, list); in __free_recorded_refs()
2776 fs_path_free(cur->full_path); in __free_recorded_refs()
2777 list_del(&cur->list); in __free_recorded_refs()
2778 kfree(cur); in __free_recorded_refs()
3039 struct recorded_ref *cur; in add_pending_dir_move() local
3067 list_for_each_entry(cur, deleted_refs, list) { in add_pending_dir_move()
3068 ret = dup_ref(cur, &pm->update_refs); in add_pending_dir_move()
3072 list_for_each_entry(cur, new_refs, list) { in add_pending_dir_move()
3073 ret = dup_ref(cur, &pm->update_refs); in add_pending_dir_move()
3121 struct recorded_ref *cur; in apply_dir_move() local
3205 list_for_each_entry(cur, &pm->update_refs, list) { in apply_dir_move()
3206 if (cur->dir == rmdir_ino) in apply_dir_move()
3208 ret = send_utimes(sctx, cur->dir, cur->dir_gen); in apply_dir_move()
3527 struct recorded_ref *cur; in process_recorded_refs() local
3585 list_for_each_entry(cur, &sctx->new_refs, list) { in process_recorded_refs()
3593 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3603 if (cur == cur2) in process_recorded_refs()
3605 if (cur2->dir == cur->dir) { in process_recorded_refs()
3616 ret = did_create_dir(sctx, cur->dir); in process_recorded_refs()
3620 ret = send_create_inode(sctx, cur->dir); in process_recorded_refs()
3632 ret = will_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3633 cur->name, cur->name_len, in process_recorded_refs()
3639 ow_inode, cur->dir, cur->name, in process_recorded_refs()
3640 cur->name_len); in process_recorded_refs()
3647 cur->full_path); in process_recorded_refs()
3666 ret = send_unlink(sctx, cur->full_path); in process_recorded_refs()
3673 ret = wait_for_dest_dir_move(sctx, cur, is_orphan); in process_recorded_refs()
3684 ret = wait_for_parent_move(sctx, cur, is_orphan); in process_recorded_refs()
3699 ret = send_rename(sctx, valid_path, cur->full_path); in process_recorded_refs()
3703 ret = fs_path_copy(valid_path, cur->full_path); in process_recorded_refs()
3714 cur->full_path); in process_recorded_refs()
3717 cur->full_path); in process_recorded_refs()
3721 ret = send_link(sctx, cur->full_path, in process_recorded_refs()
3727 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3755 list_for_each_entry(cur, &sctx->deleted_refs, list) { in process_recorded_refs()
3756 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3765 cur = list_entry(sctx->deleted_refs.next, struct recorded_ref, in process_recorded_refs()
3767 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3776 list_for_each_entry(cur, &sctx->deleted_refs, list) { in process_recorded_refs()
3777 ret = did_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3779 cur->name, cur->name_len); in process_recorded_refs()
3783 ret = send_unlink(sctx, cur->full_path); in process_recorded_refs()
3787 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3812 list_for_each_entry(cur, &check_dirs, list) { in process_recorded_refs()
3818 if (cur->dir > sctx->cur_ino) in process_recorded_refs()
3821 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3828 ret = send_utimes(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3832 cur->dir != last_dir_ino_rm) { in process_recorded_refs()
3833 ret = can_rmdir(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3838 ret = get_cur_path(sctx, cur->dir, in process_recorded_refs()
3839 cur->dir_gen, valid_path); in process_recorded_refs()
3845 last_dir_ino_rm = cur->dir; in process_recorded_refs()