Lines Matching defs:alloc_start
2924 u64 alloc_start = round_down(offset, sectorsize);
2929 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start,
2930 alloc_end - alloc_start);
2944 if (em->start <= alloc_start && (em->flags & EXTENT_FLAG_PREALLOC)) {
2962 alloc_start = em_end;
2963 ASSERT(IS_ALIGNED(alloc_start, sectorsize));
2964 len = offset + len - alloc_start;
2965 offset = alloc_start;
2972 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start, sectorsize);
2995 alloc_start = round_down(offset, sectorsize);
2996 alloc_end = alloc_start + sectorsize;
3000 alloc_start = round_up(offset, sectorsize);
3015 alloc_start = round_down(offset, sectorsize);
3046 if (alloc_start < alloc_end) {
3048 const u64 lockstart = alloc_start;
3051 bytes_to_reserve = alloc_end - alloc_start;
3060 alloc_start, bytes_to_reserve);
3066 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3067 alloc_end - alloc_start,
3082 alloc_start, bytes_to_reserve);
3099 u64 alloc_start;
3118 alloc_start = round_down(offset, blocksize);
3120 cur_offset = alloc_start;
3149 if (alloc_start > inode->i_size) {
3151 alloc_start);
3174 ret = btrfs_wait_ordered_range(BTRFS_I(inode), alloc_start,
3175 alloc_end - alloc_start);
3186 btrfs_lock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,
3189 btrfs_assert_inode_range_clean(BTRFS_I(inode), alloc_start, locked_end);
3275 btrfs_unlock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,