Lines Matching refs:BTRFS_I

979 	struct btrfs_root *root = BTRFS_I(reloc_inode)->root;  in get_new_location()
989 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
991 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1082 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1086 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1093 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1098 btrfs_drop_extent_cache(BTRFS_I(inode), in replace_file_extents()
1100 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1495 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache()
1536 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
1537 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 1); in invalidate_extent_cache()
1538 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2638 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in setup_extent_mapping()
2652 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2661 btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 0); in setup_extent_mapping()
2663 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
2683 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster()
2699 ret = prealloc_file_extent_cluster(BTRFS_I(inode), cluster); in relocate_file_extent_cluster()
2713 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2726 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2728 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2747 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2749 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2759 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
2765 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2771 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), page_start, in relocate_file_extent_cluster()
2776 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_file_extent_cluster()
2778 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_file_extent_cluster()
2781 clear_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2789 unlock_extent(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
2795 btrfs_delalloc_release_extents(BTRFS_I(inode), PAGE_SIZE); in relocate_file_extent_cluster()
3493 BTRFS_I(inode)->index_cnt = group->start; in create_reloc_inode()
3495 err = btrfs_orphan_add(trans, BTRFS_I(inode)); in create_reloc_inode()