Lines Matching refs:new_size
380 uint64_t old_size, new_size;
397 new_size = PAGE_ALIGN(offset + size);
398 if (new_size < le64toh(f->header->header_size))
399 new_size = le64toh(f->header->header_size);
401 if (new_size <= old_size) {
417 if (f->metrics.max_size > 0 && new_size > f->metrics.max_size)
420 if (new_size > f->metrics.min_size && f->metrics.keep_free > 0) {
428 if (new_size - old_size > available)
434 new_size = ((new_size+FILE_SIZE_INCREASE-1) / FILE_SIZE_INCREASE) * FILE_SIZE_INCREASE;
435 if (f->metrics.max_size > 0 && new_size > f->metrics.max_size)
436 new_size = f->metrics.max_size;
441 r = posix_fallocate(f->fd, old_size, new_size - old_size);
445 f->header->arena_size = htole64(new_size - le64toh(f->header->header_size));