Lines Matching refs:odi

2840 	struct orphan_dir_info *entry, *odi;  in add_orphan_dir_info()  local
2854 odi = kmalloc(sizeof(*odi), GFP_KERNEL); in add_orphan_dir_info()
2855 if (!odi) in add_orphan_dir_info()
2857 odi->ino = dir_ino; in add_orphan_dir_info()
2858 odi->gen = 0; in add_orphan_dir_info()
2859 odi->last_dir_index_offset = 0; in add_orphan_dir_info()
2861 rb_link_node(&odi->node, parent, p); in add_orphan_dir_info()
2862 rb_insert_color(&odi->node, &sctx->orphan_dirs); in add_orphan_dir_info()
2863 return odi; in add_orphan_dir_info()
2886 struct orphan_dir_info *odi = get_orphan_dir_info(sctx, dir_ino); in is_waiting_for_rm() local
2888 return odi != NULL; in is_waiting_for_rm()
2892 struct orphan_dir_info *odi) in free_orphan_dir_info() argument
2894 if (!odi) in free_orphan_dir_info()
2896 rb_erase(&odi->node, &sctx->orphan_dirs); in free_orphan_dir_info()
2897 kfree(odi); in free_orphan_dir_info()
2915 struct orphan_dir_info *odi = NULL; in can_rmdir() local
2931 odi = get_orphan_dir_info(sctx, dir); in can_rmdir()
2932 if (odi) in can_rmdir()
2933 key.offset = odi->last_dir_index_offset; in can_rmdir()
2962 odi = add_orphan_dir_info(sctx, dir); in can_rmdir()
2963 if (IS_ERR(odi)) { in can_rmdir()
2964 ret = PTR_ERR(odi); in can_rmdir()
2967 odi->gen = dir_gen; in can_rmdir()
2968 odi->last_dir_index_offset = found_key.offset; in can_rmdir()
2975 odi = add_orphan_dir_info(sctx, dir); in can_rmdir()
2976 if (IS_ERR(odi)) { in can_rmdir()
2977 ret = PTR_ERR(odi); in can_rmdir()
2980 odi->gen = dir_gen; in can_rmdir()
2981 odi->last_dir_index_offset = found_key.offset; in can_rmdir()
2988 free_orphan_dir_info(sctx, odi); in can_rmdir()
3265 struct orphan_dir_info *odi; in apply_dir_move() local
3268 odi = get_orphan_dir_info(sctx, rmdir_ino); in apply_dir_move()
3269 if (!odi) { in apply_dir_move()
3273 gen = odi->gen; in apply_dir_move()
7321 struct orphan_dir_info *odi; in btrfs_ioctl_send() local
7324 odi = rb_entry(n, struct orphan_dir_info, node); in btrfs_ioctl_send()
7325 free_orphan_dir_info(sctx, odi); in btrfs_ioctl_send()