Lines Matching refs:BTRFS_I

138 	struct btrfs_inode *binode = BTRFS_I(inode);  in btrfs_sync_inode_flags_to_i_flags()
159 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags()
187 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags()
374 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_fsgetxattr()
389 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_fssetxattr()
557 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol()
683 ret = btrfs_set_inode_index(BTRFS_I(dir), &index); in create_subvol()
690 name, namelen, BTRFS_I(dir), &key, in create_subvol()
697 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); in create_subvol()
702 btrfs_ino(BTRFS_I(dir)), index, name, namelen); in create_subvol()
802 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, in create_snapshot()
961 error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, in btrfs_mksubvol()
969 if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) in btrfs_mksubvol()
999 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache()
1001 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache()
1040 u64 ino = btrfs_ino(BTRFS_I(inode)); in find_new_extents()
1092 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent()
1093 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent()
1111 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len, 0); in defrag_lookup_extent()
1244 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1318 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1320 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1326 spin_lock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1327 BTRFS_I(inode)->outstanding_extents++; in cluster_pages_for_defrag()
1328 spin_unlock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1335 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1338 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1349 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT, in cluster_pages_for_defrag()
1361 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT, in cluster_pages_for_defrag()
1373 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_defrag_file()
1507 BTRFS_I(inode)->defrag_compress = compress_type; in btrfs_defrag_file()
1550 &BTRFS_I(inode)->runtime_flags)) in btrfs_defrag_file()
1565 BTRFS_I(inode)->defrag_compress = BTRFS_COMPRESS_NONE; in btrfs_defrag_file()
1582 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_resize()
1756 btrfs_info(BTRFS_I(file_inode(file))->root->fs_info, in btrfs_ioctl_snap_create_transid()
1767 BTRFS_I(src_inode)->root, in btrfs_ioctl_snap_create_transid()
1865 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_getflags()
1869 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) in btrfs_ioctl_subvol_getflags()
1888 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_setflags()
1901 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_subvol_setflags()
2149 root = BTRFS_I(inode)->root; in search_ioctl()
2349 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_search_path_in_tree_user()
2351 struct btrfs_key upper_limit = BTRFS_I(inode)->location; in btrfs_search_path_in_tree_user()
2352 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2527 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2539 ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, in btrfs_ioctl_ino_lookup()
2576 BTRFS_I(inode)->location.objectid != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_ino_lookup_user()
2622 fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_ioctl_get_subvol_info()
2625 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2742 root = BTRFS_I(inode)->root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2743 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
2818 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_ioctl_snap_destroy()
2859 dest = BTRFS_I(inode)->root; in btrfs_ioctl_snap_destroy()
2899 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_snap_destroy()
2924 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_defrag()
3256 lock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
3262 !test_range_bit(&BTRFS_I(inode)->io_tree, off, in lock_extent_range()
3268 unlock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
3296 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
3297 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
3315 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, in btrfs_double_extent_lock()
3414 u64 bs = BTRFS_I(inode)->root->fs_info->sb->s_blocksize; in extent_same_check_offsets()
3486 const u64 sz = BTRFS_I(src)->root->fs_info->sectorsize; in btrfs_extent_same_range()
3540 unlock_extent(&BTRFS_I(src)->io_tree, same_lock_start, in btrfs_extent_same_range()
3570 if ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) != in btrfs_extent_same()
3571 (BTRFS_I(dst)->flags & BTRFS_INODE_NODATASUM)) { in btrfs_extent_same()
3636 u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize; in btrfs_dedupe_file_range()
3657 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update()
3670 btrfs_i_size_write(BTRFS_I(inode), endoff); in clone_finish_inode_update()
3774 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent()
3783 key.objectid = btrfs_ino(BTRFS_I(dst)); in clone_copy_inline_extent()
3798 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent()
3832 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent()
3898 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_clone()
3923 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone()
3935 ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, in btrfs_clone()
3954 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone()
3966 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone()
4019 new_key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_clone()
4109 btrfs_ino(BTRFS_I(inode)), in btrfs_clone()
4158 clone_update_extent_map(BTRFS_I(inode), trans, in btrfs_clone()
4162 clone_update_extent_map(BTRFS_I(inode), trans, in btrfs_clone()
4213 clone_update_extent_map(BTRFS_I(inode), trans, NULL, in btrfs_clone()
4232 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_clone_files()
4266 if ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) != in btrfs_clone_files()
4267 (BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM)) { in btrfs_clone_files()
4332 unlock_extent(&BTRFS_I(src)->io_tree, lock_start, lock_end); in btrfs_clone_files()
4361 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_default_subvol()
4947 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_balance()
5183 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_assign()
5233 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_create()
5283 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_limit()
5404 struct btrfs_root *root = BTRFS_I(inode)->root; in _btrfs_ioctl_set_received_subvol()
5420 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in _btrfs_ioctl_set_received_subvol()
5593 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_fslabel()
5737 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_features()
5844 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl()