Lines Matching defs:page_size
59 size_t page_size = mmap_get_page_size();
63 i_assert(page_size > 0);
65 diff = size % page_size;
67 size += page_size - diff;
69 i_assert((size % page_size) == 0);
106 size_t page_size = mmap_get_page_size();
111 i_assert(page_size > 0);
145 poffset = offset / page_size;
146 psize = (offset + size + page_size-1) / page_size - poffset;
153 dest_offset = poffset * page_size;
155 dest_size = page_size;
160 dest_offset += page_size;
163 dest += page_size;
179 dest_offset -= page_size;
192 cache->read_highwater / page_size);
206 cache->read_highwater / page_size;
223 dest_size = page_size;
239 size_t page_size = mmap_get_page_size();
243 i_assert(page_size > 0);
256 unsigned int page = cache->read_highwater / page_size;
265 if (size >= page_size) {
266 first_page = offset / page_size;
267 last_page = (offset + size) / page_size;
268 if ((offset % page_size) != 0)
282 size_t page_size = mmap_get_page_size();
289 i_assert(page_size > 0);
298 cache->read_highwater = offset & ~(page_size-1);
301 size = (offset + size + page_size-1) / page_size;
302 offset /= page_size;
311 (void)madvise(PTR_OFFSET(cache->mmap_base, offset * page_size),
312 size * page_size, MADV_DONTNEED);