Lines Matching refs:odi

2912 	struct orphan_dir_info *entry, *odi;  in add_orphan_dir_info()  local
2929 odi = kmalloc(sizeof(*odi), GFP_KERNEL); in add_orphan_dir_info()
2930 if (!odi) in add_orphan_dir_info()
2932 odi->ino = dir_ino; in add_orphan_dir_info()
2933 odi->gen = dir_gen; in add_orphan_dir_info()
2934 odi->last_dir_index_offset = 0; in add_orphan_dir_info()
2936 rb_link_node(&odi->node, parent, p); in add_orphan_dir_info()
2937 rb_insert_color(&odi->node, &sctx->orphan_dirs); in add_orphan_dir_info()
2938 return odi; in add_orphan_dir_info()
2965 struct orphan_dir_info *odi = get_orphan_dir_info(sctx, dir_ino, gen); in is_waiting_for_rm() local
2967 return odi != NULL; in is_waiting_for_rm()
2971 struct orphan_dir_info *odi) in free_orphan_dir_info() argument
2973 if (!odi) in free_orphan_dir_info()
2975 rb_erase(&odi->node, &sctx->orphan_dirs); in free_orphan_dir_info()
2976 kfree(odi); in free_orphan_dir_info()
2995 struct orphan_dir_info *odi = NULL; in can_rmdir() local
3011 odi = get_orphan_dir_info(sctx, dir, dir_gen); in can_rmdir()
3012 if (odi) in can_rmdir()
3013 key.offset = odi->last_dir_index_offset; in can_rmdir()
3028 odi = add_orphan_dir_info(sctx, dir, dir_gen); in can_rmdir()
3029 if (IS_ERR(odi)) { in can_rmdir()
3030 ret = PTR_ERR(odi); in can_rmdir()
3033 odi->gen = dir_gen; in can_rmdir()
3034 odi->last_dir_index_offset = found_key.offset; in can_rmdir()
3042 odi = add_orphan_dir_info(sctx, dir, dir_gen); in can_rmdir()
3043 if (IS_ERR(odi)) { in can_rmdir()
3044 ret = PTR_ERR(odi); in can_rmdir()
3047 odi->gen = dir_gen; in can_rmdir()
3048 odi->last_dir_index_offset = found_key.offset; in can_rmdir()
3057 free_orphan_dir_info(sctx, odi); in can_rmdir()
3338 struct orphan_dir_info *odi; in apply_dir_move() local
3341 odi = get_orphan_dir_info(sctx, rmdir_ino, rmdir_gen); in apply_dir_move()
3342 if (!odi) { in apply_dir_move()
3346 gen = odi->gen; in apply_dir_move()
8086 struct orphan_dir_info *odi; in btrfs_ioctl_send() local
8089 odi = rb_entry(n, struct orphan_dir_info, node); in btrfs_ioctl_send()
8090 free_orphan_dir_info(sctx, odi); in btrfs_ioctl_send()