Lines Matching refs:BTRFS_I
141 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_sync_inode_flags_to_i_flags()
162 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags()
190 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags()
376 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()
567 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol()
693 ret = btrfs_set_inode_index(BTRFS_I(dir), &index); in create_subvol()
699 ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, in create_subvol()
706 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); in create_subvol()
711 btrfs_ino(BTRFS_I(dir)), index, name, namelen); in create_subvol()
817 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, in create_snapshot()
976 error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, in btrfs_mksubvol()
984 if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) in btrfs_mksubvol()
1014 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache()
1016 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache()
1055 u64 ino = btrfs_ino(BTRFS_I(inode)); in find_new_extents()
1107 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent()
1108 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent()
1126 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len, 0); in defrag_lookup_extent()
1259 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1333 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1335 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1340 spin_lock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1341 btrfs_mod_outstanding_extents(BTRFS_I(inode), 1); in cluster_pages_for_defrag()
1342 spin_unlock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1349 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1352 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1363 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT); in cluster_pages_for_defrag()
1374 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT); in cluster_pages_for_defrag()
1385 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_defrag_file()
1522 BTRFS_I(inode)->defrag_compress = compress_type; in btrfs_defrag_file()
1566 &BTRFS_I(inode)->runtime_flags)) in btrfs_defrag_file()
1581 BTRFS_I(inode)->defrag_compress = BTRFS_COMPRESS_NONE; in btrfs_defrag_file()
1598 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_resize()
1772 btrfs_info(BTRFS_I(file_inode(file))->root->fs_info, in btrfs_ioctl_snap_create_transid()
1783 BTRFS_I(src_inode)->root, in btrfs_ioctl_snap_create_transid()
1888 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_getflags()
1892 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) in btrfs_ioctl_subvol_getflags()
1911 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_setflags()
1924 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_subvol_setflags()
2172 root = BTRFS_I(inode)->root; in search_ioctl()
2372 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_search_path_in_tree_user()
2374 struct btrfs_key upper_limit = BTRFS_I(inode)->location; in btrfs_search_path_in_tree_user()
2375 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2550 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2562 ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, in btrfs_ioctl_ino_lookup()
2599 BTRFS_I(inode)->location.objectid != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_ino_lookup_user()
2645 fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_ioctl_get_subvol_info()
2648 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2765 root = BTRFS_I(inode)->root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2766 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
2841 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_ioctl_snap_destroy()
2882 dest = BTRFS_I(inode)->root; in btrfs_ioctl_snap_destroy()
2922 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_snap_destroy()
2949 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_defrag()
3221 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
3222 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
3234 lock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_lock()
3235 lock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_lock()
3261 struct btrfs_root *root_dst = BTRFS_I(dst)->root; in btrfs_extent_same()
3306 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update()
3319 btrfs_i_size_write(BTRFS_I(inode), endoff); in clone_finish_inode_update()
3368 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent()
3377 key.objectid = btrfs_ino(BTRFS_I(dst)); in clone_copy_inline_extent()
3392 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent()
3426 if (key.objectid == btrfs_ino(BTRFS_I(dst)) && in clone_copy_inline_extent()
3472 set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(dst)->runtime_flags); in clone_copy_inline_extent()
3493 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_clone()
3518 key.objectid = btrfs_ino(BTRFS_I(src)); in btrfs_clone()
3538 ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, in btrfs_clone()
3557 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone()
3569 key.objectid != btrfs_ino(BTRFS_I(src))) in btrfs_clone()
3609 new_key.objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_clone()
3830 u64 bs = BTRFS_I(inode_out)->root->fs_info->sb->s_blocksize; in btrfs_remap_file_range_prep()
3836 struct btrfs_root *root_out = BTRFS_I(inode_out)->root; in btrfs_remap_file_range_prep()
3847 if ((BTRFS_I(inode_in)->flags & BTRFS_INODE_NODATASUM) != in btrfs_remap_file_range_prep()
3848 (BTRFS_I(inode_out)->flags & BTRFS_INODE_NODATASUM)) { in btrfs_remap_file_range_prep()
3954 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_default_subvol()
4540 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_balance()
4776 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_assign()
4826 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_create()
4876 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_limit()
4997 struct btrfs_root *root = BTRFS_I(inode)->root; in _btrfs_ioctl_set_received_subvol()
5013 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in _btrfs_ioctl_set_received_subvol()
5186 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_fslabel()
5330 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_features()
5437 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl()