Lines Matching refs:BTRFS_I

98 	struct btrfs_root *root = BTRFS_I(inode)->root;  in __btrfs_add_inode_defrag()
126 set_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags); in __btrfs_add_inode_defrag()
150 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_add_inode_defrag()
158 if (test_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags)) in btrfs_add_inode_defrag()
164 transid = BTRFS_I(inode)->root->last_trans; in btrfs_add_inode_defrag()
175 if (!test_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags)) { in btrfs_add_inode_defrag()
199 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_requeue_inode_defrag()
320 clear_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags); in __btrfs_run_defrag_inode()
537 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in btrfs_drop_extent_cache()
722 if (start >= BTRFS_I(inode)->disk_i_size && !replace_extent) in __btrfs_drop_extents()
1076 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_mark_extent_written()
1386 lock_extent_bits(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need()
1393 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need()
1407 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1429 struct btrfs_root *root = BTRFS_I(inode)->root; in check_can_nocow()
1443 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1449 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1464 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow()
1474 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_buffered_write()
1523 (BTRFS_I(inode)->flags & (BTRFS_INODE_NODATACOW | in __btrfs_buffered_write()
1610 spin_lock(&BTRFS_I(inode)->lock); in __btrfs_buffered_write()
1611 BTRFS_I(inode)->outstanding_extents++; in __btrfs_buffered_write()
1612 spin_unlock(&BTRFS_I(inode)->lock); in __btrfs_buffered_write()
1629 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in __btrfs_buffered_write()
1646 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write()
1742 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_file_write_iter()
1799 atomic_inc(&BTRFS_I(inode)->sync_writers); in btrfs_file_write_iter()
1816 spin_lock(&BTRFS_I(inode)->lock); in btrfs_file_write_iter()
1817 BTRFS_I(inode)->last_sub_trans = root->log_transid; in btrfs_file_write_iter()
1818 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_file_write_iter()
1826 atomic_dec(&BTRFS_I(inode)->sync_writers); in btrfs_file_write_iter()
1843 &BTRFS_I(inode)->runtime_flags)) in btrfs_release_file()
1852 atomic_inc(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
1854 atomic_dec(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
1874 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_sync_file()
1895 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file()
1979 (full_sync && BTRFS_I(inode)->last_trans <= in btrfs_sync_file()
1987 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file()
2131 struct btrfs_root *root = BTRFS_I(inode)->root; in fill_holes()
2135 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; in fill_holes()
2197 &BTRFS_I(inode)->runtime_flags); in fill_holes()
2220 &BTRFS_I(inode)->runtime_flags); in fill_holes()
2259 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_punch_hole()
2296 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_punch_hole()
2298 BTRFS_I(inode)->root->sectorsize) - 1; in btrfs_punch_hole()
2377 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2396 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole()
2524 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2561 int blocksize = BTRFS_I(inode)->root->sectorsize; in btrfs_fallocate()
2619 lock_extent_bits(&BTRFS_I(inode)->io_tree, alloc_start, in btrfs_fallocate()
2627 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_fallocate()
2673 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_fallocate()
2706 unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
2717 struct btrfs_root *root = BTRFS_I(inode)->root; in find_desired_extent()
2742 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, 0, in find_desired_extent()
2774 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
2864 &BTRFS_I(inode)->runtime_flags)) in btrfs_fdatawrite_range()