Lines Matching defs:alloc_start
2874 u64 alloc_start = round_down(offset, sectorsize);
2879 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start,
2880 alloc_end - alloc_start);
2894 if (em->start <= alloc_start && (em->flags & EXTENT_FLAG_PREALLOC)) {
2912 alloc_start = em_end;
2913 ASSERT(IS_ALIGNED(alloc_start, sectorsize));
2914 len = offset + len - alloc_start;
2915 offset = alloc_start;
2922 em = btrfs_get_extent(BTRFS_I(inode), NULL, alloc_start, sectorsize);
2945 alloc_start = round_down(offset, sectorsize);
2946 alloc_end = alloc_start + sectorsize;
2950 alloc_start = round_up(offset, sectorsize);
2965 alloc_start = round_down(offset, sectorsize);
2995 if (alloc_start < alloc_end) {
2997 const u64 lockstart = alloc_start;
3000 bytes_to_reserve = alloc_end - alloc_start;
3009 alloc_start, bytes_to_reserve);
3015 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3016 alloc_end - alloc_start,
3031 alloc_start, bytes_to_reserve);
3048 u64 alloc_start;
3064 alloc_start = round_down(offset, blocksize);
3066 cur_offset = alloc_start;
3095 if (alloc_start > inode->i_size) {
3097 alloc_start);
3119 ret = btrfs_wait_ordered_range(inode, alloc_start,
3120 alloc_end - alloc_start);
3131 lock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,
3134 btrfs_assert_inode_range_clean(BTRFS_I(inode), alloc_start, locked_end);
3220 unlock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,