Lines Matching refs:alloc_start
2147 u64 alloc_start; in btrfs_fallocate() local
2155 alloc_start = round_down(offset, blocksize); in btrfs_fallocate()
2169 ret = btrfs_check_data_free_space(inode, alloc_end - alloc_start); in btrfs_fallocate()
2173 ret = btrfs_qgroup_reserve(root, alloc_end - alloc_start); in btrfs_fallocate()
2182 btrfs_wait_ordered_range(inode, alloc_start, alloc_end - alloc_start); in btrfs_fallocate()
2189 if (alloc_start > inode->i_size) { in btrfs_fallocate()
2191 alloc_start); in btrfs_fallocate()
2203 lock_extent_bits(&BTRFS_I(inode)->io_tree, alloc_start, in btrfs_fallocate()
2208 ordered->file_offset + ordered->len > alloc_start && in btrfs_fallocate()
2212 alloc_start, locked_end, in btrfs_fallocate()
2218 btrfs_wait_ordered_range(inode, alloc_start, in btrfs_fallocate()
2219 alloc_end - alloc_start); in btrfs_fallocate()
2227 cur_offset = alloc_start; in btrfs_fallocate()
2276 unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, in btrfs_fallocate()
2281 btrfs_qgroup_free(root, alloc_end - alloc_start); in btrfs_fallocate()
2284 btrfs_free_reserved_data_space(inode, alloc_end - alloc_start); in btrfs_fallocate()