Lines Matching refs:PAGE_IS_WRITTEN

25 #define PAGEMAP_BITS_ALL		(PAGE_IS_WPALLOWED | PAGE_IS_WRITTEN |	\
155 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) < 0) in wp_addr_range()
214 vec_size - 2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in userfaultfd_tests()
280 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) < 0, in sanity_tests_sd()
285 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) < 0, in sanity_tests_sd()
289 0, 0, 0, 0, PAGE_IS_WRITTEN) >= 0, in sanity_tests_sd()
293 0, PAGE_IS_WRITTEN, PAGE_IS_WRITTEN, 0, 0) == 0, in sanity_tests_sd()
297 0, PAGE_IS_WRITTEN, 0, 0, 0x1000) < 0, in sanity_tests_sd()
302 0, 0xFFF, PAGE_IS_WRITTEN, 0, PAGE_IS_WRITTEN) < 0, in sanity_tests_sd()
307 0, 0, 0, PAGEMAP_BITS_ALL, PAGE_IS_WRITTEN) >= 0, in sanity_tests_sd()
314 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
321 ret = pagemap_ioctl(mem, mem_size, vec, vec_size, 0, 0, PAGE_IS_WRITTEN, 0, in sanity_tests_sd()
322 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
332 num_pages/2 - 2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
336 ret2 = pagemap_ioctl(mem, mem_size, vec, 2, 0, 0, PAGE_IS_WRITTEN, 0, 0, in sanity_tests_sd()
337 PAGE_IS_WRITTEN); in sanity_tests_sd()
343 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
358 num_pages/2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
364 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
379 2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
384 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
416 ret = pagemap_ioctl(m[1], mem_size, vec, 1, 0, 0, PAGE_IS_WRITTEN, 0, 0, in sanity_tests_sd()
417 PAGE_IS_WRITTEN); in sanity_tests_sd()
449 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
458 mem_size/(page_size*5), PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
466 mem_size/(page_size*5), PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
474 mem_size/(page_size*5), PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in sanity_tests_sd()
516 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
555 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
562 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
569 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
576 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
583 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
590 vec_size, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
597 vec_size/2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
604 1, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
611 -1, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
622 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
629 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
636 vec_size, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
643 vec_size, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
650 vec_size, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
657 vec_size/2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
664 1, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN, &walk_end); in sanity_tests_sd()
699 vec_size - 2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in base_tests()
708 written = pagemap_ioctl(mem, mem_size, vec, 1, 0, 0, PAGE_IS_WRITTEN, 0, 0, in base_tests()
709 PAGE_IS_WRITTEN); in base_tests()
718 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in base_tests()
725 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in base_tests()
733 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in base_tests()
742 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in base_tests()
748 written = pagemap_ioctl(mem, mem_size, vec, vec_size, 0, 0, PAGE_IS_WRITTEN, in base_tests()
749 0, 0, PAGE_IS_WRITTEN); in base_tests()
758 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN | PAGE_IS_HUGE); in base_tests()
766 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN | PAGE_IS_HUGE); in base_tests()
819 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
828 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
838 0, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
843 LEN(vec[0]) == vec_size && vec[0].categories == PAGE_IS_WRITTEN, in hpage_unit_tests()
855 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
882 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
905 vec_size/2, PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
910 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
935 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
940 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
963 hpage_size/(2*page_size), PAGE_IS_WRITTEN, 0, 0, in hpage_unit_tests()
964 PAGE_IS_WRITTEN); in hpage_unit_tests()
972 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN); in hpage_unit_tests()
1025 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) == 1) { in test_simple()
1035 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) == 0) { in test_simple()
1100 (vec[0].categories & (PAGE_IS_WRITTEN | PAGE_IS_PRESENT)) == in sanity_tests()
1101 (PAGE_IS_WRITTEN | PAGE_IS_PRESENT), in sanity_tests()
1108 (vec[0].categories & (PAGE_IS_WRITTEN | PAGE_IS_PRESENT)) == in sanity_tests()
1109 (PAGE_IS_WRITTEN | PAGE_IS_PRESENT), in sanity_tests()
1114 PAGE_IS_WRITTEN, PAGE_IS_PRESENT, 0, PAGEMAP_BITS_ALL); in sanity_tests()
1116 (vec[0].categories & (PAGE_IS_WRITTEN | PAGE_IS_PRESENT)) == in sanity_tests()
1117 (PAGE_IS_WRITTEN | PAGE_IS_PRESENT), in sanity_tests()
1123 PAGE_IS_WRITTEN, 0, PAGE_IS_WRITTEN, PAGEMAP_BITS_ALL); in sanity_tests()
1145 0, PAGEMAP_BITS_ALL, 0, PAGE_IS_WRITTEN); in sanity_tests()
1147 vec[0].categories == PAGE_IS_WRITTEN, in sanity_tests()
1204 PAGE_IS_WRITTEN, PAGE_IS_PRESENT | PAGE_IS_SWAPPED | PAGE_IS_FILE, 0, in sanity_tests()
1209 (vec[0].categories & PAGE_IS_WRITTEN), in sanity_tests()
1242 ret = pagemap_ioctl(mem, 2 * page_size, &vec, 1, 0, 0, PAGE_IS_WRITTEN, in mprotect_tests()
1243 0, 0, PAGE_IS_WRITTEN); in mprotect_tests()
1253 PAGE_IS_WRITTEN, 0, 0, PAGE_IS_WRITTEN) == 0, in mprotect_tests()
1277 ret = pagemap_ioctl(mem, 2 * page_size, &vec, 1, 0, 0, PAGE_IS_WRITTEN, in mprotect_tests()
1278 0, 0, PAGE_IS_WRITTEN); in mprotect_tests()
1290 ret = pagemap_ioctl(mem, 2 * page_size, &vec, 1, 0, 0, PAGE_IS_WRITTEN, in mprotect_tests()
1291 0, 0, PAGE_IS_WRITTEN); in mprotect_tests()
1325 arg.category_mask = PAGE_IS_WRITTEN; in get_dirty_pages_reset()
1326 arg.return_mask = PAGE_IS_WRITTEN; in get_dirty_pages_reset()
1334 if (rgns[i].categories != PAGE_IS_WRITTEN) in get_dirty_pages_reset()