Lines Matching defs:alloc_start
2919 u64 alloc_start = round_down(offset, sectorsize);
2924 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start,
2925 alloc_end - alloc_start);
2939 if (em->start <= alloc_start && (em->flags & EXTENT_FLAG_PREALLOC)) {
2957 alloc_start = em_end;
2958 ASSERT(IS_ALIGNED(alloc_start, sectorsize));
2959 len = offset + len - alloc_start;
2960 offset = alloc_start;
2967 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start, sectorsize);
2990 alloc_start = round_down(offset, sectorsize);
2991 alloc_end = alloc_start + sectorsize;
2995 alloc_start = round_up(offset, sectorsize);
3010 alloc_start = round_down(offset, sectorsize);
3041 if (alloc_start < alloc_end) {
3043 const u64 lockstart = alloc_start;
3046 bytes_to_reserve = alloc_end - alloc_start;
3055 alloc_start, bytes_to_reserve);
3061 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3062 alloc_end - alloc_start,
3077 alloc_start, bytes_to_reserve);
3094 u64 alloc_start;
3110 alloc_start = round_down(offset, blocksize);
3112 cur_offset = alloc_start;
3141 if (alloc_start > inode->i_size) {
3143 alloc_start);
3166 ret = btrfs_wait_ordered_range(BTRFS_I(inode), alloc_start,
3167 alloc_end - alloc_start);
3178 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,
3181 btrfs_assert_inode_range_clean(BTRFS_I(inode), alloc_start, locked_end);
3267 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,