Lines Matching refs:data_end
53 int64_t data_end; member
152 s->file_end = s->zero_start = s->data_end = -EINVAL; in preallocate_open()
190 if (s->data_end < s->file_end) { in preallocate_truncate_to_real_size()
191 ret = bdrv_truncate(bs->file, s->data_end, true, PREALLOC_MODE_OFF, 0, in preallocate_truncate_to_real_size()
198 s->file_end = s->data_end; in preallocate_truncate_to_real_size()
214 if (s->data_end >= 0) { in preallocate_close()
307 assert(s->data_end < 0); in has_prealloc_perms()
339 if (s->data_end < 0) { in handle_write()
340 s->data_end = bdrv_co_getlength(bs->file->bs); in handle_write()
341 if (s->data_end < 0) { in handle_write()
346 s->file_end = s->data_end; in handle_write()
350 if (end <= s->data_end) { in handle_write()
356 s->data_end = end; in handle_write()
431 if (s->data_end >= 0 && offset > s->data_end) { in preallocate_co_truncate()
448 s->data_end = offset; in preallocate_co_truncate()
461 if (s->file_end > s->data_end) { in preallocate_co_truncate()
462 ret = bdrv_co_truncate(bs->file, s->data_end, true, in preallocate_co_truncate()
470 s->file_end = s->data_end; in preallocate_co_truncate()
474 s->data_end = offset; in preallocate_co_truncate()
479 s->file_end = s->zero_start = s->data_end = ret; in preallocate_co_truncate()
484 s->file_end = s->zero_start = s->data_end = offset; in preallocate_co_truncate()
500 if (s->data_end >= 0) { in preallocate_co_getlength()
501 return s->data_end; in preallocate_co_getlength()
507 s->file_end = s->zero_start = s->data_end = ret; in preallocate_co_getlength()
519 if (s->data_end < 0) { in preallocate_drop_resize()
538 s->data_end = s->file_end = s->zero_start = -EINVAL; in preallocate_drop_resize()
564 if (s->data_end < 0) { in preallocate_set_perm()
565 s->data_end = s->file_end = s->zero_start = in preallocate_set_perm()
586 if (can_write_resize(perm) || s->data_end != -EINVAL) { in preallocate_child_perm()