Lines Matching refs:BTRFS_I

997 	struct btrfs_root *root = BTRFS_I(reloc_inode)->root;  in get_new_location()
1007 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
1009 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1100 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1104 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1111 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1116 btrfs_drop_extent_cache(BTRFS_I(inode), in replace_file_extents()
1118 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1513 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache()
1554 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
1555 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 1); in invalidate_extent_cache()
1556 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2656 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in setup_extent_mapping()
2670 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2679 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 0); in setup_extent_mapping()
2681 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2701 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster()
2717 ret = prealloc_file_extent_cluster(BTRFS_I(inode), cluster); in relocate_file_extent_cluster()
2731 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2744 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2746 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2765 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2767 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2777 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
2783 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2789 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), page_start, in relocate_file_extent_cluster()
2794 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2796 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2799 clear_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2807 unlock_extent(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2813 btrfs_delalloc_release_extents(BTRFS_I(inode), PAGE_SIZE); in relocate_file_extent_cluster()
3516 BTRFS_I(inode)->index_cnt = group->start; in create_reloc_inode()
3518 err = btrfs_orphan_add(trans, BTRFS_I(inode)); in create_reloc_inode()