Lines Matching refs:BTRFS_I
139 struct btrfs_inode *ip = BTRFS_I(inode); in btrfs_update_iflags()
170 flags = BTRFS_I(dir)->flags; in btrfs_inherit_iflags()
173 BTRFS_I(inode)->flags &= ~BTRFS_INODE_COMPRESS; in btrfs_inherit_iflags()
174 BTRFS_I(inode)->flags |= BTRFS_INODE_NOCOMPRESS; in btrfs_inherit_iflags()
176 BTRFS_I(inode)->flags &= ~BTRFS_INODE_NOCOMPRESS; in btrfs_inherit_iflags()
177 BTRFS_I(inode)->flags |= BTRFS_INODE_COMPRESS; in btrfs_inherit_iflags()
181 BTRFS_I(inode)->flags |= BTRFS_INODE_NODATACOW; in btrfs_inherit_iflags()
183 BTRFS_I(inode)->flags |= BTRFS_INODE_NODATASUM; in btrfs_inherit_iflags()
191 struct btrfs_inode *ip = BTRFS_I(file_inode(file)); in btrfs_ioctl_getflags()
217 struct btrfs_inode *ip = BTRFS_I(inode); in btrfs_ioctl_setflags()
443 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol()
688 ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, in create_snapshot()
741 btrfs_subvolume_release_metadata(BTRFS_I(dir)->root, in create_snapshot()
850 error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, in btrfs_mksubvol()
856 down_read(&BTRFS_I(dir)->root->fs_info->subvol_sem); in btrfs_mksubvol()
858 if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) in btrfs_mksubvol()
871 up_read(&BTRFS_I(dir)->root->fs_info->subvol_sem); in btrfs_mksubvol()
888 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache()
890 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in check_defrag_in_cache()
981 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in defrag_lookup_extent()
982 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent()
1132 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1206 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1208 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1214 spin_lock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1215 BTRFS_I(inode)->outstanding_extents++; in cluster_pages_for_defrag()
1216 spin_unlock(&BTRFS_I(inode)->lock); in cluster_pages_for_defrag()
1223 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1226 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1255 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_defrag_file()
1389 BTRFS_I(inode)->force_compress = compress_type; in btrfs_defrag_file()
1433 &BTRFS_I(inode)->runtime_flags)) in btrfs_defrag_file()
1461 BTRFS_I(inode)->force_compress = BTRFS_COMPRESS_NONE; in btrfs_defrag_file()
1476 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_resize()
1651 btrfs_info(BTRFS_I(file_inode(file))->root->fs_info, in btrfs_ioctl_snap_create_transid()
1662 BTRFS_I(src_inode)->root, in btrfs_ioctl_snap_create_transid()
1753 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_getflags()
1775 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_subvol_setflags()
2069 struct btrfs_fs_info *info = BTRFS_I(inode)->root->fs_info; in search_ioctl()
2085 root = BTRFS_I(inode)->root; in search_ioctl()
2306 args->treeid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_ioctl_ino_lookup()
2318 ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, in btrfs_ioctl_ino_lookup()
2337 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_ioctl_snap_destroy()
2380 dest = BTRFS_I(inode)->root; in btrfs_ioctl_snap_destroy()
2565 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_defrag()
2666 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_rm_dev()
2850 lock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
2856 !test_range_bit(&BTRFS_I(inode)->io_tree, off, in lock_extent_range()
2862 unlock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range()
2890 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, loff1 + len - 1); in btrfs_double_extent_unlock()
2891 unlock_extent(&BTRFS_I(inode2)->io_tree, loff2, loff2 + len - 1); in btrfs_double_extent_unlock()
2909 unlock_extent(&BTRFS_I(inode1)->io_tree, loff1, in btrfs_double_extent_lock()
3025 u64 bs = BTRFS_I(inode)->root->fs_info->sb->s_blocksize; in extent_same_check_offsets()
3104 if ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) != in btrfs_extent_same()
3105 (BTRFS_I(dst)->flags & BTRFS_INODE_NODATASUM)) { in btrfs_extent_same()
3157 unlock_extent(&BTRFS_I(src)->io_tree, same_lock_start, in btrfs_extent_same()
3185 u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize; in btrfs_ioctl_file_extent_same()
3289 struct btrfs_root *root = BTRFS_I(inode)->root; in clone_finish_inode_update()
3321 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in clone_update_extent_map()
3328 &BTRFS_I(inode)->runtime_flags); in clone_update_extent_map()
3342 &BTRFS_I(inode)->runtime_flags); in clone_update_extent_map()
3369 &BTRFS_I(inode)->runtime_flags); in clone_update_extent_map()
3408 struct btrfs_root *root = BTRFS_I(dst)->root; in clone_copy_inline_extent()
3531 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_clone()
3568 ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, in btrfs_clone()
3587 ret = btrfs_next_leaf(BTRFS_I(src)->root, path); in btrfs_clone()
3859 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_clone()
3910 if ((BTRFS_I(src)->flags & BTRFS_INODE_NODATASUM) != in btrfs_ioctl_clone()
3911 (BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM)) in btrfs_ioctl_clone()
3988 unlock_extent(&BTRFS_I(src)->io_tree, lock_start, lock_end); in btrfs_ioctl_clone()
4029 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_trans_start()
4069 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_default_subvol()
4308 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_ioctl_trans_end()
4369 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_scrub()
4663 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_balance()
4860 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_quota_ctl()
4911 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_qgroup_assign()
4963 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_qgroup_create()
5013 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_qgroup_limit()
5061 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_quota_rescan()
5094 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_quota_rescan_status()
5119 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_quota_rescan_wait()
5131 struct btrfs_root *root = BTRFS_I(inode)->root; in _btrfs_ioctl_set_received_subvol()
5299 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_get_fslabel()
5322 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_set_fslabel()
5382 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_get_features()
5463 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl_set_features()
5523 struct btrfs_root *root = BTRFS_I(file_inode(file))->root; in btrfs_ioctl()