Lines Matching refs:cur
860 u32 cur = 0; in iterate_inode_ref() local
896 while (cur < total) { in iterate_inode_ref()
900 iref = (struct btrfs_inode_ref *)(ptr + cur); in iterate_inode_ref()
906 extref = (struct btrfs_inode_extref *)(ptr + cur); in iterate_inode_ref()
945 cur += elem_size + name_len; in iterate_inode_ref()
983 u32 cur; in iterate_dir_item() local
1007 cur = 0; in iterate_dir_item()
1012 while (cur < total) { in iterate_dir_item()
1064 cur += len; in iterate_dir_item()
2024 struct name_cache_entry *cur; in name_cache_search() local
2030 list_for_each_entry(cur, nce_head, radix_list) { in name_cache_search()
2031 if (cur->ino == ino && cur->gen == gen) in name_cache_search()
2032 return cur; in name_cache_search()
2742 struct recorded_ref *cur; in __free_recorded_refs() local
2745 cur = list_entry(head->next, struct recorded_ref, list); in __free_recorded_refs()
2746 fs_path_free(cur->full_path); in __free_recorded_refs()
2747 list_del(&cur->list); in __free_recorded_refs()
2748 kfree(cur); in __free_recorded_refs()
3008 struct recorded_ref *cur; in add_pending_dir_move() local
3036 list_for_each_entry(cur, deleted_refs, list) { in add_pending_dir_move()
3037 ret = dup_ref(cur, &pm->update_refs); in add_pending_dir_move()
3041 list_for_each_entry(cur, new_refs, list) { in add_pending_dir_move()
3042 ret = dup_ref(cur, &pm->update_refs); in add_pending_dir_move()
3090 struct recorded_ref *cur; in apply_dir_move() local
3174 list_for_each_entry(cur, &pm->update_refs, list) { in apply_dir_move()
3175 if (cur->dir == rmdir_ino) in apply_dir_move()
3177 ret = send_utimes(sctx, cur->dir, cur->dir_gen); in apply_dir_move()
3451 struct recorded_ref *cur; in process_recorded_refs() local
3509 list_for_each_entry(cur, &sctx->new_refs, list) { in process_recorded_refs()
3517 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3527 if (cur == cur2) in process_recorded_refs()
3529 if (cur2->dir == cur->dir) { in process_recorded_refs()
3540 ret = did_create_dir(sctx, cur->dir); in process_recorded_refs()
3544 ret = send_create_inode(sctx, cur->dir); in process_recorded_refs()
3556 ret = will_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3557 cur->name, cur->name_len, in process_recorded_refs()
3563 ow_inode, cur->dir, cur->name, in process_recorded_refs()
3564 cur->name_len); in process_recorded_refs()
3571 cur->full_path); in process_recorded_refs()
3590 ret = send_unlink(sctx, cur->full_path); in process_recorded_refs()
3597 ret = wait_for_dest_dir_move(sctx, cur, is_orphan); in process_recorded_refs()
3612 ret = send_rename(sctx, valid_path, cur->full_path); in process_recorded_refs()
3616 ret = fs_path_copy(valid_path, cur->full_path); in process_recorded_refs()
3626 ret = wait_for_parent_move(sctx, cur); in process_recorded_refs()
3633 cur->full_path); in process_recorded_refs()
3636 cur->full_path); in process_recorded_refs()
3641 ret = send_link(sctx, cur->full_path, in process_recorded_refs()
3647 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3675 list_for_each_entry(cur, &sctx->deleted_refs, list) { in process_recorded_refs()
3676 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3685 cur = list_entry(sctx->deleted_refs.next, struct recorded_ref, in process_recorded_refs()
3687 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3696 list_for_each_entry(cur, &sctx->deleted_refs, list) { in process_recorded_refs()
3697 ret = did_overwrite_ref(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3699 cur->name, cur->name_len); in process_recorded_refs()
3703 ret = send_unlink(sctx, cur->full_path); in process_recorded_refs()
3707 ret = dup_ref(cur, &check_dirs); in process_recorded_refs()
3732 list_for_each_entry(cur, &check_dirs, list) { in process_recorded_refs()
3738 if (cur->dir > sctx->cur_ino) in process_recorded_refs()
3741 ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3748 ret = send_utimes(sctx, cur->dir, cur->dir_gen); in process_recorded_refs()
3752 cur->dir != last_dir_ino_rm) { in process_recorded_refs()
3753 ret = can_rmdir(sctx, cur->dir, cur->dir_gen, in process_recorded_refs()
3758 ret = get_cur_path(sctx, cur->dir, in process_recorded_refs()
3759 cur->dir_gen, valid_path); in process_recorded_refs()
3765 last_dir_ino_rm = cur->dir; in process_recorded_refs()