Lines Matching refs:BTRFS_I

306 	clear_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags);  in __btrfs_run_defrag_inode()
322 btrfs_requeue_inode_defrag(BTRFS_I(inode), defrag); in __btrfs_run_defrag_inode()
331 btrfs_requeue_inode_defrag(BTRFS_I(inode), defrag); in __btrfs_run_defrag_inode()
534 if (!btrfs_is_free_space_inode(BTRFS_I(inode))) { in btrfs_dirty_pages()
536 !(BTRFS_I(inode)->flags & BTRFS_INODE_PREALLOC)) { in btrfs_dirty_pages()
544 err = btrfs_find_new_delalloc_bytes(BTRFS_I(inode), in btrfs_dirty_pages()
751 u64 ino = btrfs_ino(BTRFS_I(inode)); in __btrfs_drop_extents()
769 btrfs_drop_extent_cache(BTRFS_I(inode), start, end - 1, 0); in __btrfs_drop_extents()
771 if (start >= BTRFS_I(inode)->disk_i_size && !replace_extent) in __btrfs_drop_extents()
1575 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_buffered_write()
1630 if ((BTRFS_I(inode)->flags & (BTRFS_INODE_NODATACOW | in btrfs_buffered_write()
1632 check_can_nocow(BTRFS_I(inode), pos, in btrfs_buffered_write()
1654 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1677 btrfs_delalloc_release_extents(BTRFS_I(inode), in btrfs_buffered_write()
1683 BTRFS_I(inode), pages, in btrfs_buffered_write()
1689 btrfs_delalloc_release_extents(BTRFS_I(inode), in btrfs_buffered_write()
1724 btrfs_delalloc_release_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1745 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write()
1747 btrfs_delalloc_release_extents(BTRFS_I(inode), reserve_bytes, in btrfs_buffered_write()
1764 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
1787 btrfs_delalloc_release_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1864 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_file_write_iter()
1897 if (!(BTRFS_I(inode)->flags & (BTRFS_INODE_NODATACOW | in btrfs_file_write_iter()
1899 check_can_nocow(BTRFS_I(inode), pos, &count) <= 0) { in btrfs_file_write_iter()
1948 atomic_inc(&BTRFS_I(inode)->sync_writers); in btrfs_file_write_iter()
1968 spin_lock(&BTRFS_I(inode)->lock); in btrfs_file_write_iter()
1969 BTRFS_I(inode)->last_sub_trans = root->log_transid; in btrfs_file_write_iter()
1970 spin_unlock(&BTRFS_I(inode)->lock); in btrfs_file_write_iter()
1975 atomic_dec(&BTRFS_I(inode)->sync_writers); in btrfs_file_write_iter()
1997 &BTRFS_I(inode)->runtime_flags)) in btrfs_release_file()
2014 atomic_inc(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
2016 atomic_dec(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
2038 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_sync_file()
2078 if (btrfs_inode_in_log(BTRFS_I(inode), fs_info->generation) || in btrfs_sync_file()
2079 BTRFS_I(inode)->last_trans <= fs_info->last_trans_committed) { in btrfs_sync_file()
2086 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file()
2339 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, in find_first_non_hole()
2367 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2387 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole_lock_range()
2400 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_punch_hole()
2563 ret = fill_holes(trans, BTRFS_I(inode), path, in btrfs_punch_hole()
2635 ret = fill_holes(trans, BTRFS_I(inode), path, in btrfs_punch_hole()
2661 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
2731 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_fallocate_update_isize()
2765 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, offset, sectorsize, 0); in btrfs_zero_range_check_range_boundary()
2785 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_zero_range()
2798 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, in btrfs_zero_range()
2842 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, in btrfs_zero_range()
2919 ret = btrfs_alloc_data_chunk_ondemand(BTRFS_I(inode), in btrfs_zero_range()
2936 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
2992 ret = btrfs_alloc_data_chunk_ondemand(BTRFS_I(inode), in btrfs_fallocate()
3051 lock_extent_bits(&BTRFS_I(inode)->io_tree, alloc_start, in btrfs_fallocate()
3059 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_fallocate()
3080 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_fallocate()
3143 unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
3183 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3187 em = btrfs_get_extent_fiemap(BTRFS_I(inode), NULL, 0, in find_desired_extent()
3216 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in find_desired_extent()
3313 &BTRFS_I(inode)->runtime_flags)) in btrfs_fdatawrite_range()