Lines Matching refs:BTRFS_I

138 	struct btrfs_inode *binode = BTRFS_I(inode);
159 struct btrfs_inode *binode = BTRFS_I(file_inode(file));
200 struct btrfs_inode *binode = BTRFS_I(inode);
399 struct btrfs_inode *binode = BTRFS_I(file_inode(file));
412 struct btrfs_inode *binode = BTRFS_I(inode);
588 struct btrfs_root *root = BTRFS_I(dir)->root;
734 ret = btrfs_set_inode_index(BTRFS_I(dir), &index);
740 ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key,
747 btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2);
755 btrfs_ino(BTRFS_I(dir)), index, name, namelen);
838 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root,
993 error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root,
1001 if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0)
1068 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
1070 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;
1109 u64 ino = btrfs_ino(BTRFS_I(inode));
1161 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;
1162 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
1180 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len);
1309 ret = btrfs_delalloc_reserve_space(BTRFS_I(inode), &data_reserved,
1314 tree = &BTRFS_I(inode)->io_tree;
1330 ordered = btrfs_lookup_ordered_extent(BTRFS_I(inode),
1388 lock_extent_bits(&BTRFS_I(inode)->io_tree,
1408 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, search_start,
1424 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start,
1429 spin_lock(&BTRFS_I(inode)->lock);
1430 btrfs_mod_outstanding_extents(BTRFS_I(inode), 1);
1431 spin_unlock(&BTRFS_I(inode)->lock);
1432 btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved,
1437 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1,
1440 unlock_extent_cached(&BTRFS_I(inode)->io_tree,
1451 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT);
1456 unlock_extent_cached(&BTRFS_I(inode)->io_tree,
1463 btrfs_delalloc_release_space(BTRFS_I(inode), data_reserved,
1465 btrfs_delalloc_release_extents(BTRFS_I(inode), page_cnt << PAGE_SHIFT);
1476 struct btrfs_root *root = BTRFS_I(inode)->root;
1613 BTRFS_I(inode)->defrag_compress = compress_type;
1657 &BTRFS_I(inode)->runtime_flags))
1672 BTRFS_I(inode)->defrag_compress = BTRFS_COMPRESS_NONE;
1689 struct btrfs_root *root = BTRFS_I(inode)->root;
1865 btrfs_info(BTRFS_I(file_inode(file))->root->fs_info,
1874 } else if (btrfs_ino(BTRFS_I(src_inode)) != BTRFS_FIRST_FREE_OBJECTID) {
1885 BTRFS_I(src_inode)->root,
1985 struct btrfs_root *root = BTRFS_I(inode)->root;
1989 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID)
2008 struct btrfs_root *root = BTRFS_I(inode)->root;
2021 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
2273 root = btrfs_grab_root(BTRFS_I(inode)->root);
2475 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info;
2477 struct btrfs_key upper_limit = BTRFS_I(inode)->location;
2478 u64 treeid = BTRFS_I(inode)->root->root_key.objectid;
2659 args->treeid = BTRFS_I(inode)->root->root_key.objectid;
2671 ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info,
2708 BTRFS_I(inode)->location.objectid != BTRFS_FIRST_FREE_OBJECTID) {
2754 fs_info = BTRFS_I(inode)->root->fs_info;
2757 key.objectid = BTRFS_I(inode)->root->root_key.objectid;
2874 root = BTRFS_I(inode)->root->fs_info->tree_root;
2875 objectid = BTRFS_I(inode)->root->root_key.objectid;
2952 struct btrfs_root *root = BTRFS_I(dir)->root;
3079 dest = BTRFS_I(inode)->root;
3119 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
3150 struct btrfs_root *root = BTRFS_I(inode)->root;
3444 struct btrfs_root *root = BTRFS_I(inode)->root;
4017 struct btrfs_root *root = BTRFS_I(file_inode(file))->root;
4252 struct btrfs_root *root = BTRFS_I(inode)->root;
4304 struct btrfs_root *root = BTRFS_I(inode)->root;
4359 struct btrfs_root *root = BTRFS_I(inode)->root;
4477 struct btrfs_root *root = BTRFS_I(inode)->root;
4493 if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
4665 struct btrfs_root *root = BTRFS_I(inode)->root;
4808 struct btrfs_root *root = BTRFS_I(inode)->root;
4915 struct btrfs_root *root = BTRFS_I(inode)->root;