Lines Matching defs:alloc_start
2857 u64 alloc_start = round_down(offset, sectorsize);
2862 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start,
2863 alloc_end - alloc_start);
2877 if (em->start <= alloc_start &&
2896 alloc_start = em_end;
2897 ASSERT(IS_ALIGNED(alloc_start, sectorsize));
2898 len = offset + len - alloc_start;
2899 offset = alloc_start;
2906 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, alloc_start,
2930 alloc_start = round_down(offset, sectorsize);
2931 alloc_end = alloc_start + sectorsize;
2935 alloc_start = round_up(offset, sectorsize);
2950 alloc_start = round_down(offset, sectorsize);
2980 if (alloc_start < alloc_end) {
2982 const u64 lockstart = alloc_start;
2985 bytes_to_reserve = alloc_end - alloc_start;
2994 alloc_start, bytes_to_reserve);
3000 ret = btrfs_prealloc_file_range(inode, mode, alloc_start,
3001 alloc_end - alloc_start,
3016 alloc_start, bytes_to_reserve);
3033 u64 alloc_start;
3049 alloc_start = round_down(offset, blocksize);
3051 cur_offset = alloc_start;
3080 if (alloc_start > inode->i_size) {
3082 alloc_start);
3104 ret = btrfs_wait_ordered_range(inode, alloc_start,
3105 alloc_end - alloc_start);
3116 lock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,
3119 btrfs_assert_inode_range_clean(BTRFS_I(inode), alloc_start, locked_end);
3205 unlock_extent(&BTRFS_I(inode)->io_tree, alloc_start, locked_end,