Lines Matching refs:BTRFS_I
1008 struct btrfs_root *root = BTRFS_I(reloc_inode)->root; in get_new_location()
1018 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
1020 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1111 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1115 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1122 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1127 btrfs_drop_extent_map_range(BTRFS_I(inode), in replace_file_extents()
1129 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1528 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache()
1569 lock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in invalidate_extent_cache()
1570 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, true); in invalidate_extent_cache()
1571 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in invalidate_extent_cache()
2906 lock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in setup_relocation_extent_mapping()
2907 ret = btrfs_replace_extent_map_range(BTRFS_I(inode), em, false); in setup_relocation_extent_mapping()
2908 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, NULL); in setup_relocation_extent_mapping()
2941 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_one_page()
2994 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in relocate_one_page()
3001 lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end, NULL); in relocate_one_page()
3002 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), clamped_start, in relocate_one_page()
3005 clear_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_one_page()
3008 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_one_page()
3010 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_one_page()
3030 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_one_page()
3034 unlock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end, NULL); in relocate_one_page()
3035 btrfs_delalloc_release_extents(BTRFS_I(inode), clamped_len); in relocate_one_page()
3064 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster()
3078 ret = prealloc_file_extent_cluster(BTRFS_I(inode), cluster); in relocate_file_extent_cluster()
3841 BTRFS_I(inode)->index_cnt = group->start; in create_reloc_inode()
3843 err = btrfs_orphan_add(trans, BTRFS_I(inode)); in create_reloc_inode()