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()
200 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_setflags()
399 struct btrfs_inode *binode = BTRFS_I(file_inode(file)); in btrfs_ioctl_fsgetxattr()
412 struct btrfs_inode *binode = BTRFS_I(inode); in btrfs_ioctl_fssetxattr()
588 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol()
734 ret = btrfs_set_inode_index(BTRFS_I(dir), &index); in create_subvol()
740 ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, in create_subvol()
747 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); in create_subvol()
755 btrfs_ino(BTRFS_I(dir)), index, name, namelen); in create_subvol()
835 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, in create_snapshot()
990 error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, in btrfs_mksubvol()
998 if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) in btrfs_mksubvol()
1065 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache()
1067 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache()
1106 u64 ino = btrfs_ino(BTRFS_I(inode)); in find_new_extents()
1158 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent()
1159 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent()
1177 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len); in defrag_lookup_extent()
1306 ret = btrfs_delalloc_reserve_space(BTRFS_I(inode), &data_reserved, in cluster_pages_for_defrag()
1311 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1327 ordered = btrfs_lookup_ordered_extent(BTRFS_I(inode), in cluster_pages_for_defrag()
1385 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1405 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, search_start, in cluster_pages_for_defrag()
1421 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1426 spin_lock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1427 btrfs_mod_outstanding_extents(BTRFS_I(inode), 1); in cluster_pages_for_defrag()
1428 spin_unlock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1429 btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved, in cluster_pages_for_defrag()
1434 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1437 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1448 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT); in cluster_pages_for_defrag()
1453 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1460 btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved, in cluster_pages_for_defrag()
1462 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT); in cluster_pages_for_defrag()
1473 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_defrag_file()
1610 BTRFS_I(inode)->defrag_compress = compress_type; in btrfs_defrag_file()
1654 &BTRFS_I(inode)->runtime_flags)) in btrfs_defrag_file()
1669 BTRFS_I(inode)->defrag_compress = BTRFS_COMPRESS_NONE; in btrfs_defrag_file()
1686 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_resize()
1862 btrfs_info(BTRFS_I(file_inode(file))->root->fs_info, in __btrfs_ioctl_snap_create()
1873 BTRFS_I(src_inode)->root, in __btrfs_ioctl_snap_create()
1973 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_getflags()
1977 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) in btrfs_ioctl_subvol_getflags()
1996 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_setflags()
2009 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_subvol_setflags()
2261 root = btrfs_grab_root(BTRFS_I(inode)->root); in search_ioctl()
2463 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_search_path_in_tree_user()
2465 struct btrfs_key upper_limit = BTRFS_I(inode)->location; in btrfs_search_path_in_tree_user()
2466 u64 treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_search_path_in_tree_user()
2641 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2653 ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, in btrfs_ioctl_ino_lookup()
2690 BTRFS_I(inode)->location.objectid != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_ino_lookup_user()
2736 fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_ioctl_get_subvol_info()
2739 key.objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_info()
2856 root = BTRFS_I(inode)->root->fs_info->tree_root; in btrfs_ioctl_get_subvol_rootref()
2857 objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_get_subvol_rootref()
2934 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_ioctl_snap_destroy()
3061 dest = BTRFS_I(inode)->root; in btrfs_ioctl_snap_destroy()
3101 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in btrfs_ioctl_snap_destroy()
3132 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_defrag()
3425 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_default_subvol()
3993 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_balance()
4228 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_assign()
4278 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_create()
4328 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_qgroup_limit()
4446 struct btrfs_root *root = BTRFS_I(inode)->root; in _btrfs_ioctl_set_received_subvol()
4462 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) { in _btrfs_ioctl_set_received_subvol()
4634 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_fslabel()
4777 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_set_features()
4884 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl()