Lines Matching refs:BTRFS_I

1018 	struct btrfs_root *root = BTRFS_I(reloc_inode)->root;  in get_new_location()
1028 bytenr -= BTRFS_I(reloc_inode)->index_cnt; in get_new_location()
1030 btrfs_ino(BTRFS_I(reloc_inode)), bytenr, 0); in get_new_location()
1121 } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) { in replace_file_extents()
1122 btrfs_add_delayed_iput(BTRFS_I(inode)); in replace_file_extents()
1125 if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) { in replace_file_extents()
1134 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1140 btrfs_drop_extent_map_range(BTRFS_I(inode), in replace_file_extents()
1142 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1186 btrfs_add_delayed_iput(BTRFS_I(inode)); in replace_file_extents()
1543 ino = btrfs_ino(BTRFS_I(inode)); in invalidate_extent_cache()
1584 lock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1585 btrfs_drop_extent_map_range(BTRFS_I(inode), start, end, true); in invalidate_extent_cache()
1586 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2957 lock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2958 ret = btrfs_replace_extent_map_range(BTRFS_I(inode), em, false); in setup_relocation_extent_mapping()
2959 unlock_extent(&BTRFS_I(inode)->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2992 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_one_page()
3052 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in relocate_one_page()
3059 lock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end, in relocate_one_page()
3061 ret = btrfs_set_extent_delalloc(BTRFS_I(inode), clamped_start, in relocate_one_page()
3064 clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_page()
3068 btrfs_delalloc_release_metadata(BTRFS_I(inode), in relocate_one_page()
3070 btrfs_delalloc_release_extents(BTRFS_I(inode), in relocate_one_page()
3090 set_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_page()
3094 unlock_extent(&BTRFS_I(inode)->io_tree, clamped_start, clamped_end, in relocate_one_page()
3096 btrfs_delalloc_release_extents(BTRFS_I(inode), clamped_len); in relocate_one_page()
3125 u64 offset = BTRFS_I(inode)->index_cnt; in relocate_file_extent_cluster()
3139 ret = prealloc_file_extent_cluster(BTRFS_I(inode), cluster); in relocate_file_extent_cluster()
3909 BTRFS_I(inode)->index_cnt = group->start; in create_reloc_inode()
3911 err = btrfs_orphan_add(trans, BTRFS_I(inode)); in create_reloc_inode()
4386 struct btrfs_inode *inode = BTRFS_I(ordered->inode); in btrfs_reloc_clone_csums()