Lines Matching refs:BTRFS_I

286 	clear_bit(BTRFS_INODE_IN_DEFRAG, &BTRFS_I(inode)->runtime_flags);  in __btrfs_run_defrag_inode()
1457 !(BTRFS_I(inode)->flags & (BTRFS_INODE_NODATACOW | BTRFS_INODE_PREALLOC))) in btrfs_write_check()
1479 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
1565 ret = btrfs_check_data_free_space(BTRFS_I(inode), in btrfs_buffered_write()
1581 can_nocow = btrfs_check_nocow_lock(BTRFS_I(inode), pos, in btrfs_buffered_write()
1597 ret = btrfs_delalloc_reserve_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1602 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_buffered_write()
1606 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1617 btrfs_delalloc_release_extents(BTRFS_I(inode), reserve_bytes); in btrfs_buffered_write()
1629 btrfs_delalloc_release_extents(BTRFS_I(inode), in btrfs_buffered_write()
1635 BTRFS_I(inode), pages, in btrfs_buffered_write()
1642 btrfs_delalloc_release_extents(BTRFS_I(inode), in btrfs_buffered_write()
1676 btrfs_delalloc_release_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1684 btrfs_delalloc_release_space(BTRFS_I(inode), in btrfs_buffered_write()
1693 ret = btrfs_dirty_pages(BTRFS_I(inode), pages, in btrfs_buffered_write()
1705 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
1710 btrfs_delalloc_release_extents(BTRFS_I(inode), reserve_bytes); in btrfs_buffered_write()
1718 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1732 btrfs_check_nocow_unlock(BTRFS_I(inode)); in btrfs_buffered_write()
1733 btrfs_delalloc_release_metadata(BTRFS_I(inode), in btrfs_buffered_write()
1736 btrfs_delalloc_release_space(BTRFS_I(inode), in btrfs_buffered_write()
1964 struct btrfs_inode *inode = BTRFS_I(file_inode(file)); in btrfs_do_write_iter()
2029 &BTRFS_I(inode)->runtime_flags)) in btrfs_release_file()
2046 atomic_inc(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
2048 atomic_dec(&BTRFS_I(inode)->sync_writers); in start_ordered_ops()
2056 struct btrfs_inode *inode = BTRFS_I(ctx->inode); in skip_inode_logging()
2094 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_sync_file()
2164 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file()
2189 btrfs_get_ordered_extents_for_logging(BTRFS_I(inode), in btrfs_sync_file()
2207 &BTRFS_I(inode)->runtime_flags); in btrfs_sync_file()
2520 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2536 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2540 btrfs_assert_inode_range_clean(BTRFS_I(inode), lockstart, lockend); in btrfs_punch_hole_lock_range()
2902 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_punch_hole()
2924 ret = find_first_non_hole(BTRFS_I(inode), &offset, &len); in btrfs_punch_hole()
2952 ret = btrfs_truncate_block(BTRFS_I(inode), offset, len, in btrfs_punch_hole()
2963 ret = btrfs_truncate_block(BTRFS_I(inode), offset, 0, 0); in btrfs_punch_hole()
2978 ret = find_first_non_hole(BTRFS_I(inode), &offset, &len); in btrfs_punch_hole()
2992 ret = find_first_non_hole(BTRFS_I(inode), &tail_start, &tail_len); in btrfs_punch_hole()
2999 ret = btrfs_truncate_block(BTRFS_I(inode), in btrfs_punch_hole()
3021 ret = btrfs_replace_file_extents(BTRFS_I(inode), path, lockstart, in btrfs_punch_hole()
3031 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in btrfs_punch_hole()
3036 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3058 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in btrfs_punch_hole()
3111 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_fallocate_update_isize()
3124 btrfs_inode_safe_disk_i_size_write(BTRFS_I(inode), 0); in btrfs_fallocate_update_isize()
3125 ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); in btrfs_fallocate_update_isize()
3165 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_zero_range()
3176 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start, in btrfs_zero_range()
3220 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start, in btrfs_zero_range()
3235 ret = btrfs_truncate_block(BTRFS_I(inode), offset, len, in btrfs_zero_range()
3259 ret = btrfs_zero_range_check_range_boundary(BTRFS_I(inode), in btrfs_zero_range()
3267 ret = btrfs_truncate_block(BTRFS_I(inode), offset, 0, 0); in btrfs_zero_range()
3276 ret = btrfs_zero_range_check_range_boundary(BTRFS_I(inode), in btrfs_zero_range()
3284 ret = btrfs_truncate_block(BTRFS_I(inode), offset + len, in btrfs_zero_range()
3300 ret = btrfs_alloc_data_chunk_ondemand(BTRFS_I(inode), in btrfs_zero_range()
3307 ret = btrfs_qgroup_reserve_data(BTRFS_I(inode), &data_reserved, in btrfs_zero_range()
3310 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
3318 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_zero_range()
3329 btrfs_free_reserved_data_space(BTRFS_I(inode), data_reserved, in btrfs_zero_range()
3356 int blocksize = BTRFS_I(inode)->root->fs_info->sectorsize; in btrfs_fallocate()
3395 ret = btrfs_cont_expand(BTRFS_I(inode), i_size_read(inode), in btrfs_fallocate()
3405 ret = btrfs_truncate_block(BTRFS_I(inode), inode->i_size, 0, 0); in btrfs_fallocate()
3430 lock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
3433 btrfs_assert_inode_range_clean(BTRFS_I(inode), alloc_start, locked_end); in btrfs_fallocate()
3438 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_fallocate()
3457 ret = btrfs_qgroup_reserve_data(BTRFS_I(inode), in btrfs_fallocate()
3475 ret = btrfs_alloc_data_chunk_ondemand(BTRFS_I(inode), in btrfs_fallocate()
3498 btrfs_free_reserved_data_space(BTRFS_I(inode), in btrfs_fallocate()
3504 btrfs_qgroup_free_data(BTRFS_I(inode), data_reserved, in btrfs_fallocate()
3520 unlock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
3991 offset = find_desired_extent(BTRFS_I(inode), offset, whence); in btrfs_file_llseek()
4170 &BTRFS_I(inode)->runtime_flags)) in btrfs_fdatawrite_range()