Lines Matching defs:alloc_start
3112 u64 alloc_start = round_down(offset, sectorsize);
3119 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start,
3120 alloc_end - alloc_start);
3134 if (em->start <= alloc_start &&
3153 alloc_start = em_end;
3154 ASSERT(IS_ALIGNED(alloc_start, sectorsize));
3155 len = offset + len - alloc_start;
3156 offset = alloc_start;
3163 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start,
3186 alloc_start = round_down(offset, sectorsize);
3187 alloc_end = alloc_start + sectorsize;
3191 alloc_start = round_up(offset, sectorsize);
3206 alloc_start = round_down(offset, sectorsize);
3235 if (alloc_start < alloc_end) {
3237 const u64 lockstart = alloc_start;
3240 bytes_to_reserve = alloc_end - alloc_start;
3251 alloc_start, bytes_to_reserve);
3257 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3258 alloc_end - alloc_start,
3273 alloc_start, bytes_to_reserve);
3290 u64 alloc_start;
3299 alloc_start = round_down(offset, blocksize);
3301 cur_offset = alloc_start;
3318 alloc_end - alloc_start);
3342 if (alloc_start > inode->i_size) {
3344 alloc_start);
3362 ret = btrfs_wait_ordered_range(inode, alloc_start,
3363 alloc_end - alloc_start);
3380 lock_extent_bits(&BTRFS_I(inode)->io_tree, alloc_start,
3386 ordered->file_offset + ordered->num_bytes > alloc_start &&
3390 alloc_start, locked_end,
3396 ret = btrfs_wait_ordered_range(inode, alloc_start,
3397 alloc_end - alloc_start);
3476 unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,