Lines Matching refs:BTRFS_I
1556 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location()
1566 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
1568 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1656 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1660 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1667 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1672 btrfs_drop_extent_cache(BTRFS_I(inode), in replace_file_extents()
1674 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
2053 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache()
2094 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2095 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 1); in invalidate_extent_cache()
2096 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
3070 u64 offset = BTRFS_I(inode)->index_cnt; in prealloc_file_extent_cluster()
3095 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3104 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3123 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in setup_extent_mapping()
3138 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3147 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 0); in setup_extent_mapping()
3149 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3159 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster()
3189 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
3202 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
3204 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
3223 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
3225 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
3235 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
3241 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
3252 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
3254 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
3257 clear_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
3265 unlock_extent(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
3271 btrfs_delalloc_release_extents(BTRFS_I(inode), PAGE_SIZE); in relocate_file_extent_cluster()
4178 BTRFS_I(inode)->index_cnt = group->key.objectid; in create_reloc_inode()
4180 err = btrfs_orphan_add(trans, BTRFS_I(inode)); in create_reloc_inode()
4558 disk_bytenr = file_pos + BTRFS_I(inode)->index_cnt; in btrfs_reloc_clone_csums()