Lines Matching refs:BTRFS_I
115 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops()
225 BTRFS_I(inode)->disk_i_size = inode->i_size; in insert_inline_extent()
309 set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(inode)->runtime_flags); in cow_file_range_inline()
368 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_need_compress()
374 if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS) in inode_need_compress()
377 BTRFS_I(inode)->flags & BTRFS_INODE_COMPRESS || in inode_need_compress()
378 BTRFS_I(inode)->force_compress) in inode_need_compress()
406 struct btrfs_root *root = BTRFS_I(inode)->root; in compress_file_range()
426 (start > 0 || end + 1 < BTRFS_I(inode)->disk_i_size)) in compress_file_range()
455 (start > 0 || end + 1 < BTRFS_I(inode)->disk_i_size)) in compress_file_range()
487 if (BTRFS_I(inode)->force_compress) in compress_file_range()
488 compress_type = BTRFS_I(inode)->force_compress; in compress_file_range()
600 !(BTRFS_I(inode)->force_compress)) { in compress_file_range()
601 BTRFS_I(inode)->flags |= BTRFS_INODE_NOCOMPRESS; in compress_file_range()
681 struct btrfs_root *root = BTRFS_I(inode)->root; in submit_compressed_extents()
682 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in submit_compressed_extents()
692 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
838 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
876 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in get_extent_allocation_hint()
924 struct btrfs_root *root = BTRFS_I(inode)->root; in cow_file_range()
933 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in cow_file_range()
948 (start > 0 || end + 1 < BTRFS_I(inode)->disk_i_size)) in cow_file_range()
1132 struct btrfs_root *root = BTRFS_I(inode)->root; in cow_file_range_async()
1137 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1147 if (BTRFS_I(inode)->flags & BTRFS_INODE_NOCOMPRESS && in cow_file_range_async()
1220 struct btrfs_root *root = BTRFS_I(inode)->root; in run_delalloc_nocow()
1416 em_tree = &BTRFS_I(inode)->extent_tree; in run_delalloc_nocow()
1508 if (!(BTRFS_I(inode)->flags & BTRFS_INODE_NODATACOW) && in need_force_cow()
1509 !(BTRFS_I(inode)->flags & BTRFS_INODE_PREALLOC)) in need_force_cow()
1517 if (BTRFS_I(inode)->defrag_bytes && in need_force_cow()
1518 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
1535 if (BTRFS_I(inode)->flags & BTRFS_INODE_NODATACOW && !force_cow) { in run_delalloc_range()
1538 } else if (BTRFS_I(inode)->flags & BTRFS_INODE_PREALLOC && !force_cow) { in run_delalloc_range()
1546 &BTRFS_I(inode)->runtime_flags); in run_delalloc_range()
1582 spin_lock(&BTRFS_I(inode)->lock); in btrfs_split_extent_hook()
1583 BTRFS_I(inode)->outstanding_extents++; in btrfs_split_extent_hook()
1584 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_split_extent_hook()
1611 spin_lock(&BTRFS_I(inode)->lock); in btrfs_merge_extent_hook()
1612 BTRFS_I(inode)->outstanding_extents--; in btrfs_merge_extent_hook()
1613 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_merge_extent_hook()
1646 spin_lock(&BTRFS_I(inode)->lock); in btrfs_merge_extent_hook()
1647 BTRFS_I(inode)->outstanding_extents--; in btrfs_merge_extent_hook()
1648 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_merge_extent_hook()
1655 if (list_empty(&BTRFS_I(inode)->delalloc_inodes)) { in btrfs_add_delalloc_inodes()
1656 list_add_tail(&BTRFS_I(inode)->delalloc_inodes, in btrfs_add_delalloc_inodes()
1659 &BTRFS_I(inode)->runtime_flags); in btrfs_add_delalloc_inodes()
1676 if (!list_empty(&BTRFS_I(inode)->delalloc_inodes)) { in btrfs_del_delalloc_inode()
1677 list_del_init(&BTRFS_I(inode)->delalloc_inodes); in btrfs_del_delalloc_inode()
1679 &BTRFS_I(inode)->runtime_flags); in btrfs_del_delalloc_inode()
1708 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_set_bit_hook()
1715 spin_lock(&BTRFS_I(inode)->lock); in btrfs_set_bit_hook()
1716 BTRFS_I(inode)->outstanding_extents++; in btrfs_set_bit_hook()
1717 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_set_bit_hook()
1726 spin_lock(&BTRFS_I(inode)->lock); in btrfs_set_bit_hook()
1727 BTRFS_I(inode)->delalloc_bytes += len; in btrfs_set_bit_hook()
1729 BTRFS_I(inode)->defrag_bytes += len; in btrfs_set_bit_hook()
1731 &BTRFS_I(inode)->runtime_flags)) in btrfs_set_bit_hook()
1733 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_set_bit_hook()
1748 spin_lock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1750 BTRFS_I(inode)->defrag_bytes -= len; in btrfs_clear_bit_hook()
1751 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1759 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_clear_bit_hook()
1765 spin_lock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1766 BTRFS_I(inode)->outstanding_extents -= num_extents; in btrfs_clear_bit_hook()
1767 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1790 spin_lock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1791 BTRFS_I(inode)->delalloc_bytes -= len; in btrfs_clear_bit_hook()
1792 if (do_list && BTRFS_I(inode)->delalloc_bytes == 0 && in btrfs_clear_bit_hook()
1794 &BTRFS_I(inode)->runtime_flags)) in btrfs_clear_bit_hook()
1796 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_clear_bit_hook()
1808 struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; in btrfs_merge_bio_hook()
1841 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_submit_bio_start()
1861 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_submit_bio_done()
1880 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_submit_bio_hook()
1884 int async = !atomic_read(&BTRFS_I(inode)->sync_writers); in btrfs_submit_bio_hook()
1886 skip_sum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM; in btrfs_submit_bio_hook()
1912 ret = btrfs_wq_submit_bio(BTRFS_I(inode)->root->fs_info, in btrfs_submit_bio_hook()
1948 BTRFS_I(inode)->root->fs_info->csum_root, sum); in add_pending_csums()
1958 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
1992 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, 0, in btrfs_writepage_fixup_worker()
2001 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker()
2022 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2045 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_writepage_start_hook()
2074 struct btrfs_root *root = BTRFS_I(inode)->root; in insert_reserved_file_extent()
2261 if (BTRFS_I(inode)->root->root_key.objectid == root_id && in record_one_backref()
2269 fs_info = BTRFS_I(inode)->root->fs_info; in record_one_backref()
2367 struct btrfs_fs_info *fs_info = BTRFS_I(new->inode)->root->fs_info; in record_extent_backrefs()
2452 fs_info = BTRFS_I(src_inode)->root->fs_info; in relink_extent_backref()
2484 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2612 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2642 root = BTRFS_I(inode)->root; in relink_file_extents()
2687 struct btrfs_root *root = BTRFS_I(inode)->root; in record_old_file_extents()
2818 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_finish_ordered_io()
2820 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io()
2884 if (0 && last_snapshot >= BTRFS_I(inode)->generation) in btrfs_finish_ordered_io()
2927 unpin_extent_cache(&BTRFS_I(inode)->extent_tree, in btrfs_finish_ordered_io()
3017 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_writepage_end_io_hook()
3064 btrfs_warn_rl(BTRFS_I(inode)->root->fs_info, in __readpage_endio_check()
3086 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_readpage_end_io_hook()
3087 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_readpage_end_io_hook()
3094 if (BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM) in btrfs_readpage_end_io_hook()
3118 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_add_delayed_iput()
3213 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_add()
3234 &BTRFS_I(inode)->runtime_flags)) { in btrfs_orphan_add()
3251 &BTRFS_I(inode)->runtime_flags)) in btrfs_orphan_add()
3268 &BTRFS_I(inode)->runtime_flags); in btrfs_orphan_add()
3273 &BTRFS_I(inode)->runtime_flags); in btrfs_orphan_add()
3300 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_del()
3307 &BTRFS_I(inode)->runtime_flags)) in btrfs_orphan_del()
3311 &BTRFS_I(inode)->runtime_flags)) in btrfs_orphan_del()
3466 &BTRFS_I(inode)->runtime_flags); in btrfs_orphan_cleanup()
3609 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_read_locked_inode()
3626 memcpy(&location, &BTRFS_I(inode)->location, sizeof(location)); in btrfs_read_locked_inode()
3654 BTRFS_I(inode)->i_otime.tv_sec = in btrfs_read_locked_inode()
3656 BTRFS_I(inode)->i_otime.tv_nsec = in btrfs_read_locked_inode()
3660 BTRFS_I(inode)->generation = btrfs_inode_generation(leaf, inode_item); in btrfs_read_locked_inode()
3661 BTRFS_I(inode)->last_trans = btrfs_inode_transid(leaf, inode_item); in btrfs_read_locked_inode()
3664 inode->i_generation = BTRFS_I(inode)->generation; in btrfs_read_locked_inode()
3668 BTRFS_I(inode)->index_cnt = (u64)-1; in btrfs_read_locked_inode()
3669 BTRFS_I(inode)->flags = btrfs_inode_flags(leaf, inode_item); in btrfs_read_locked_inode()
3681 if (BTRFS_I(inode)->last_trans == root->fs_info->generation) in btrfs_read_locked_inode()
3683 &BTRFS_I(inode)->runtime_flags); in btrfs_read_locked_inode()
3712 BTRFS_I(inode)->last_unlink_trans = BTRFS_I(inode)->last_trans; in btrfs_read_locked_inode()
3728 BTRFS_I(inode)->dir_index = btrfs_inode_ref_index(leaf, ref); in btrfs_read_locked_inode()
3733 BTRFS_I(inode)->dir_index = btrfs_inode_extref_index(leaf, in btrfs_read_locked_inode()
3760 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_read_locked_inode()
3803 btrfs_set_token_inode_size(leaf, item, BTRFS_I(inode)->disk_i_size, in fill_inode_item()
3824 BTRFS_I(inode)->i_otime.tv_sec, &token); in fill_inode_item()
3826 BTRFS_I(inode)->i_otime.tv_nsec, &token); in fill_inode_item()
3830 btrfs_set_token_inode_generation(leaf, item, BTRFS_I(inode)->generation, in fill_inode_item()
3835 btrfs_set_token_inode_flags(leaf, item, BTRFS_I(inode)->flags, &token); in fill_inode_item()
3855 ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, in btrfs_update_inode_item()
3970 if (BTRFS_I(inode)->dir_index) { in __btrfs_unlink_inode()
3973 index = BTRFS_I(inode)->dir_index; in __btrfs_unlink_inode()
4045 struct btrfs_root *root = BTRFS_I(dir)->root; in __unlink_start_trans()
4059 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_unlink()
4171 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_rmdir()
4185 BTRFS_I(inode)->location.objectid, in btrfs_rmdir()
4232 struct btrfs_root *root = BTRFS_I(inode)->root; in truncate_inline_extent()
4334 if (min_type == 0 && root == BTRFS_I(inode)->root) in btrfs_truncate_inode_items()
4617 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_truncate_page()
4618 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_page()
4681 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_truncate_page()
4731 BTRFS_I(inode)->last_trans = root->fs_info->generation; in maybe_insert_hole()
4732 BTRFS_I(inode)->last_sub_trans = root->log_transid; in maybe_insert_hole()
4733 BTRFS_I(inode)->last_log_commit = root->last_log_commit; in maybe_insert_hole()
4771 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_cont_expand()
4772 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand()
4775 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_cont_expand()
4834 &BTRFS_I(inode)->runtime_flags); in btrfs_cont_expand()
4896 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setsize()
4952 &BTRFS_I(inode)->runtime_flags); in btrfs_setsize()
5000 i_size_write(inode, BTRFS_I(inode)->disk_i_size); in btrfs_setsize()
5014 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_setattr()
5056 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages()
5057 struct extent_map_tree *map_tree = &BTRFS_I(inode)->extent_tree; in evict_inode_truncate_pages()
5138 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_evict_inode()
5166 &BTRFS_I(inode)->runtime_flags)); in btrfs_evict_inode()
5317 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_inode_by_name()
5367 key.objectid = BTRFS_I(dir)->root->root_key.objectid; in fixup_tree_root_location()
5411 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_tree_add()
5415 struct rb_node *new = &BTRFS_I(inode)->rb_node; in inode_tree_add()
5447 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_tree_del()
5451 if (!RB_EMPTY_NODE(&BTRFS_I(inode)->rb_node)) { in inode_tree_del()
5452 rb_erase(&BTRFS_I(inode)->rb_node, &root->inode_tree); in inode_tree_del()
5453 RB_CLEAR_NODE(&BTRFS_I(inode)->rb_node); in inode_tree_del()
5535 memcpy(&BTRFS_I(inode)->location, args->location, in btrfs_init_locked_inode()
5537 BTRFS_I(inode)->root = args->root; in btrfs_init_locked_inode()
5544 return args->location->objectid == BTRFS_I(inode)->location.objectid && in btrfs_find_actor()
5545 args->root == BTRFS_I(inode)->root; in btrfs_find_actor()
5603 BTRFS_I(inode)->root = root; in new_simple_dir()
5604 memcpy(&BTRFS_I(inode)->location, key, sizeof(*key)); in new_simple_dir()
5605 set_bit(BTRFS_INODE_DUMMY, &BTRFS_I(inode)->runtime_flags); in new_simple_dir()
5614 BTRFS_I(inode)->i_otime = inode->i_mtime; in new_simple_dir()
5622 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_lookup_dentry()
5681 root = BTRFS_I(inode)->root; in btrfs_dentry_delete()
5719 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_real_readdir()
5913 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_write_inode()
5918 if (test_bit(BTRFS_INODE_DUMMY, &BTRFS_I(inode)->runtime_flags)) in btrfs_write_inode()
5944 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_dirty_inode()
5948 if (test_bit(BTRFS_INODE_DUMMY, &BTRFS_I(inode)->runtime_flags)) in btrfs_dirty_inode()
5966 if (BTRFS_I(inode)->delayed_node) in btrfs_dirty_inode()
5979 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_update_time()
6002 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_set_inode_index_count()
6031 BTRFS_I(inode)->index_cnt = 2; in btrfs_set_inode_index_count()
6042 BTRFS_I(inode)->index_cnt = 2; in btrfs_set_inode_index_count()
6046 BTRFS_I(inode)->index_cnt = found_key.offset + 1; in btrfs_set_inode_index_count()
6060 if (BTRFS_I(dir)->index_cnt == (u64)-1) { in btrfs_set_inode_index()
6069 *index = BTRFS_I(dir)->index_cnt; in btrfs_set_inode_index()
6070 BTRFS_I(dir)->index_cnt++; in btrfs_set_inode_index()
6078 args.location = &BTRFS_I(inode)->location; in btrfs_insert_inode_locked()
6079 args.root = BTRFS_I(inode)->root; in btrfs_insert_inode_locked()
6082 btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root), in btrfs_insert_inode_locked()
6144 BTRFS_I(inode)->index_cnt = 2; in btrfs_new_inode()
6145 BTRFS_I(inode)->dir_index = *index; in btrfs_new_inode()
6146 BTRFS_I(inode)->root = root; in btrfs_new_inode()
6147 BTRFS_I(inode)->generation = trans->transid; in btrfs_new_inode()
6148 inode->i_generation = BTRFS_I(inode)->generation; in btrfs_new_inode()
6156 set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(inode)->runtime_flags); in btrfs_new_inode()
6178 location = &BTRFS_I(inode)->location; in btrfs_new_inode()
6198 BTRFS_I(inode)->i_otime = inode->i_mtime; in btrfs_new_inode()
6222 BTRFS_I(inode)->flags |= BTRFS_INODE_NODATASUM; in btrfs_new_inode()
6224 BTRFS_I(inode)->flags |= BTRFS_INODE_NODATACOW | in btrfs_new_inode()
6247 BTRFS_I(dir)->index_cnt--; in btrfs_new_inode()
6270 struct btrfs_root *root = BTRFS_I(parent_inode)->root; in btrfs_add_link()
6275 memcpy(&key, &BTRFS_I(inode)->root->root_key, sizeof(key)); in btrfs_add_link()
6348 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_mknod()
6419 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_create()
6469 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_create()
6493 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_link()
6500 if (root->objectid != BTRFS_I(inode)->root->objectid) in btrfs_link()
6523 BTRFS_I(inode)->dir_index = 0ULL; in btrfs_link()
6528 set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags); in btrfs_link()
6568 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_mkdir()
6751 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_get_extent()
6756 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_get_extent()
6757 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_get_extent()
7049 found = count_range_bits(&BTRFS_I(inode)->io_tree, &range_start, in btrfs_get_extent_fiemap()
7140 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_new_extent_direct()
7182 struct btrfs_root *root = BTRFS_I(inode)->root; in can_nocow_extent()
7183 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent()
7192 bool nocow = (BTRFS_I(inode)->flags & BTRFS_INODE_NODATACOW); in can_nocow_extent()
7392 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7414 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7456 struct btrfs_root *root = BTRFS_I(inode)->root; in create_pinned_em()
7459 em_tree = &BTRFS_I(inode)->extent_tree; in create_pinned_em()
7516 spin_lock(&BTRFS_I(inode)->lock); in adjust_dio_outstanding_extents()
7517 BTRFS_I(inode)->outstanding_extents += num_extents; in adjust_dio_outstanding_extents()
7518 spin_unlock(&BTRFS_I(inode)->lock); in adjust_dio_outstanding_extents()
7526 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_get_blocks_direct()
7613 ((BTRFS_I(inode)->flags & BTRFS_INODE_NODATACOW) && in btrfs_get_blocks_direct()
7692 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_get_blocks_direct()
7704 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_get_blocks_direct()
7723 struct btrfs_root *root = BTRFS_I(inode)->root; in submit_dio_repair_bio()
7748 num_copies = btrfs_num_copies(BTRFS_I(inode)->root->fs_info, in btrfs_check_dio_repairable()
7813 btrfs_debug(BTRFS_I(inode)->root->fs_info, in dio_read_error()
7969 bool skip_csum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM; in btrfs_subio_endio_read()
7992 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
8010 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_endio_direct_write()
8054 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_submit_bio_start_direct_io()
8066 btrfs_warn(BTRFS_I(dip->inode)->root->fs_info, in btrfs_end_dio_bio()
8147 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_submit_dio_bio()
8151 async_submit = !atomic_read(&BTRFS_I(inode)->sync_writers); in __btrfs_submit_dio_bio()
8197 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_submit_direct_hook()
8316 skip_sum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM; in btrfs_submit_direct()
8392 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8445 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_direct_IO()
8453 if (check_direct_IO(BTRFS_I(inode)->root, iocb, iter, offset)) in btrfs_direct_IO()
8467 &BTRFS_I(inode)->runtime_flags)) in btrfs_direct_IO()
8496 &BTRFS_I(inode)->runtime_flags)) { in btrfs_direct_IO()
8503 BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev, in btrfs_direct_IO()
8542 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_readpage()
8567 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_writepage()
8578 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_writepages()
8587 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_readpages()
8597 tree = &BTRFS_I(page->mapping->host)->io_tree; in __btrfs_releasepage()
8598 map = &BTRFS_I(page->mapping->host)->extent_tree; in __btrfs_releasepage()
8635 tree = &BTRFS_I(inode)->io_tree; in btrfs_invalidatepage()
8663 tree = &BTRFS_I(inode)->ordered_tree; in btrfs_invalidatepage()
8734 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_page_mkwrite()
8735 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite()
8802 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_page_mkwrite()
8833 BTRFS_I(inode)->last_trans = root->fs_info->generation; in btrfs_page_mkwrite()
8834 BTRFS_I(inode)->last_sub_trans = BTRFS_I(inode)->root->log_transid; in btrfs_page_mkwrite()
8835 BTRFS_I(inode)->last_log_commit = BTRFS_I(inode)->root->last_log_commit; in btrfs_page_mkwrite()
8854 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_truncate()
8931 set_bit(BTRFS_INODE_NEEDS_FULL_SYNC, &BTRFS_I(inode)->runtime_flags); in btrfs_truncate()
9085 kmem_cache_free(btrfs_inode_cachep, BTRFS_I(inode)); in btrfs_test_destroy_inode()
9092 kmem_cache_free(btrfs_inode_cachep, BTRFS_I(inode)); in btrfs_i_callback()
9098 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_destroy_inode()
9102 WARN_ON(BTRFS_I(inode)->outstanding_extents); in btrfs_destroy_inode()
9103 WARN_ON(BTRFS_I(inode)->reserved_extents); in btrfs_destroy_inode()
9104 WARN_ON(BTRFS_I(inode)->delalloc_bytes); in btrfs_destroy_inode()
9105 WARN_ON(BTRFS_I(inode)->csum_bytes); in btrfs_destroy_inode()
9106 WARN_ON(BTRFS_I(inode)->defrag_bytes); in btrfs_destroy_inode()
9117 &BTRFS_I(inode)->runtime_flags)) { in btrfs_destroy_inode()
9144 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_drop_inode()
9237 stat->dev = BTRFS_I(inode)->root->anon_dev; in btrfs_getattr()
9240 spin_lock(&BTRFS_I(inode)->lock); in btrfs_getattr()
9241 delalloc_bytes = BTRFS_I(inode)->delalloc_bytes; in btrfs_getattr()
9242 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_getattr()
9252 struct btrfs_root *root = BTRFS_I(old_dir)->root; in btrfs_rename()
9253 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename()
9328 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename()
9361 root_objectid = BTRFS_I(old_inode)->root->root_key.objectid; in btrfs_rename()
9383 root_objectid = BTRFS_I(new_inode)->location.objectid; in btrfs_rename()
9412 BTRFS_I(old_inode)->dir_index = index; in btrfs_rename()
9451 &BTRFS_I(inode)->runtime_flags)) in btrfs_run_delalloc_work()
9643 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_symlink()
9693 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_symlink()
9767 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in __btrfs_prealloc_file_range()
9769 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_prealloc_file_range()
9827 &BTRFS_I(inode)->runtime_flags); in __btrfs_prealloc_file_range()
9860 BTRFS_I(inode)->flags |= BTRFS_INODE_PREALLOC; in __btrfs_prealloc_file_range()
9912 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_permission()
9919 if (BTRFS_I(inode)->flags & BTRFS_INODE_READONLY) in btrfs_permission()
9928 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_tmpfile()
9957 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_tmpfile()