Lines Matching refs:vm_flags

70 					vm_flags_t vm_flags)  in alloc_vma()  argument
80 vm_flags_reset(vma, vm_flags); in alloc_vma()
108 vm_flags_t vm_flags) in alloc_and_link_vma() argument
110 struct vm_area_struct *vma = alloc_vma(mm, start, end, pgoff, vm_flags); in alloc_and_link_vma()
177 unsigned long end, pgoff_t pgoff, vm_flags_t vm_flags) in vmg_set_range() argument
189 vmg->vm_flags = vm_flags; in vmg_set_range()
200 unsigned long end, pgoff_t pgoff, vm_flags_t vm_flags, in vmg_set_range_anon_vma() argument
203 vmg_set_range(vmg, start, end, pgoff, vm_flags); in vmg_set_range_anon_vma()
216 pgoff_t pgoff, vm_flags_t vm_flags, in try_merge_new_vma() argument
221 vmg_set_range(vmg, start, end, pgoff, vm_flags); in try_merge_new_vma()
234 return alloc_and_link_vma(mm, start, end, pgoff, vm_flags); in try_merge_new_vma()
306 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_simple_merge() local
308 struct vm_area_struct *vma_left = alloc_vma(&mm, 0, 0x1000, 0, vm_flags); in test_simple_merge()
309 struct vm_area_struct *vma_right = alloc_vma(&mm, 0x2000, 0x3000, 2, vm_flags); in test_simple_merge()
316 .vm_flags = vm_flags, in test_simple_merge()
329 ASSERT_EQ(vma->vm_flags, vm_flags); in test_simple_merge()
340 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_simple_modify() local
342 struct vm_area_struct *init_vma = alloc_vma(&mm, 0, 0x3000, 0, vm_flags); in test_simple_modify()
400 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_simple_expand() local
402 struct vm_area_struct *vma = alloc_vma(&mm, 0, 0x1000, 0, vm_flags); in test_simple_expand()
428 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_simple_shrink() local
430 struct vm_area_struct *vma = alloc_vma(&mm, 0, 0x3000, 0, vm_flags); in test_simple_shrink()
449 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in __test_merge_new() local
476 vm_flags |= VM_STICKY; in __test_merge_new()
482 vma_a = alloc_and_link_vma(&mm, 0, 0x2000, 0, vm_flags); in __test_merge_new()
490 vma_b = alloc_and_link_vma(&mm, 0x3000, 0x4000, 3, vm_flags); in __test_merge_new()
497 vma_c = alloc_and_link_vma(&mm, 0xb000, 0xc000, 0xb, vm_flags); in __test_merge_new()
510 vma_d = try_merge_new_vma(&mm, &vmg, 0x7000, 0x9000, 7, vm_flags, &merged); in __test_merge_new()
525 vma = try_merge_new_vma(&mm, &vmg, 0x2000, 0x3000, 2, vm_flags, &merged); in __test_merge_new()
536 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
544 vma = try_merge_new_vma(&mm, &vmg, 0x4000, 0x5000, 4, vm_flags, &merged); in __test_merge_new()
555 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
565 vma = try_merge_new_vma(&mm, &vmg, 0x6000, 0x7000, 6, vm_flags, &merged); in __test_merge_new()
576 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
585 vma = try_merge_new_vma(&mm, &vmg, 0x5000, 0x6000, 5, vm_flags, &merged); in __test_merge_new()
596 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
605 vma = try_merge_new_vma(&mm, &vmg, 0xa000, 0xb000, 0xa, vm_flags, &merged); in __test_merge_new()
616 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
624 vma = try_merge_new_vma(&mm, &vmg, 0x9000, 0xa000, 0x9, vm_flags, &merged); in __test_merge_new()
635 ASSERT_TRUE(IS_SET(vma->vm_flags, VM_STICKY)); in __test_merge_new()
680 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_vma_merge_special_flags() local
702 vma_left = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vma_merge_special_flags()
713 vmg_set_range(&vmg, 0x3000, 0x4000, 3, vm_flags); in test_vma_merge_special_flags()
717 vm_flags_reset(vma_left, vm_flags | special_flag); in test_vma_merge_special_flags()
718 vmg.vm_flags = vm_flags | special_flag; in test_vma_merge_special_flags()
732 vma = alloc_and_link_vma(&mm, 0x3000, 0x4000, 3, vm_flags); in test_vma_merge_special_flags()
739 vm_flags_reset(vma_left, vm_flags | special_flag); in test_vma_merge_special_flags()
740 vmg.vm_flags = vm_flags | special_flag; in test_vma_merge_special_flags()
752 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_vma_merge_with_close() local
832 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vma_merge_with_close()
833 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x9000, 5, vm_flags); in test_vma_merge_with_close()
836 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
857 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vma_merge_with_close()
858 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
861 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
885 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
886 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x9000, 5, vm_flags); in test_vma_merge_with_close()
889 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
913 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vma_merge_with_close()
914 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
915 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x9000, 5, vm_flags); in test_vma_merge_with_close()
918 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
939 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vma_merge_with_close()
940 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
941 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x9000, 5, vm_flags); in test_vma_merge_with_close()
944 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_vma_merge_with_close()
961 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_vma_merge_new_with_close() local
968 struct vm_area_struct *vma_prev = alloc_and_link_vma(&mm, 0, 0x2000, 0, vm_flags); in test_vma_merge_new_with_close()
969 struct vm_area_struct *vma_next = alloc_and_link_vma(&mm, 0x5000, 0x7000, 5, vm_flags); in test_vma_merge_new_with_close()
999 vmg_set_range(&vmg, 0x2000, 0x5000, 2, vm_flags); in test_vma_merge_new_with_close()
1016 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in __test_merge_existing() local
1017 vm_flags_t prev_flags = vm_flags; in __test_merge_existing()
1018 vm_flags_t next_flags = vm_flags; in __test_merge_existing()
1034 vm_flags |= VM_STICKY; in __test_merge_existing()
1048 vma = alloc_and_link_vma(&mm, 0x2000, 0x6000, 2, vm_flags); in __test_merge_existing()
1052 vmg_set_range_anon_vma(&vmg, 0x3000, 0x6000, 3, vm_flags, &dummy_anon_vma); in __test_merge_existing()
1069 ASSERT_TRUE(IS_SET(vma_next->vm_flags, VM_STICKY)); in __test_merge_existing()
1084 vma = alloc_and_link_vma(&mm, 0x2000, 0x6000, 2, vm_flags); in __test_merge_existing()
1087 vmg_set_range_anon_vma(&vmg, 0x2000, 0x6000, 2, vm_flags, &dummy_anon_vma); in __test_merge_existing()
1099 ASSERT_TRUE(IS_SET(vma_next->vm_flags, VM_STICKY)); in __test_merge_existing()
1116 vma = alloc_and_link_vma(&mm, 0x3000, 0x7000, 3, vm_flags); in __test_merge_existing()
1118 vmg_set_range_anon_vma(&vmg, 0x3000, 0x6000, 3, vm_flags, &dummy_anon_vma); in __test_merge_existing()
1135 ASSERT_TRUE(IS_SET(vma_prev->vm_flags, VM_STICKY)); in __test_merge_existing()
1152 vma = alloc_and_link_vma(&mm, 0x3000, 0x7000, 3, vm_flags); in __test_merge_existing()
1153 vmg_set_range_anon_vma(&vmg, 0x3000, 0x7000, 3, vm_flags, &dummy_anon_vma); in __test_merge_existing()
1166 ASSERT_TRUE(IS_SET(vma_prev->vm_flags, VM_STICKY)); in __test_merge_existing()
1183 vma = alloc_and_link_vma(&mm, 0x3000, 0x7000, 3, vm_flags); in __test_merge_existing()
1185 vmg_set_range_anon_vma(&vmg, 0x3000, 0x7000, 3, vm_flags, &dummy_anon_vma); in __test_merge_existing()
1198 ASSERT_TRUE(IS_SET(vma_prev->vm_flags, VM_STICKY)); in __test_merge_existing()
1219 vma = alloc_and_link_vma(&mm, 0x3000, 0x8000, 3, vm_flags); in __test_merge_existing()
1222 vmg_set_range(&vmg, 0x4000, 0x5000, 4, vm_flags); in __test_merge_existing()
1228 vmg_set_range(&vmg, 0x5000, 0x6000, 5, vm_flags); in __test_merge_existing()
1234 vmg_set_range(&vmg, 0x6000, 0x7000, 6, vm_flags); in __test_merge_existing()
1240 vmg_set_range(&vmg, 0x4000, 0x7000, 4, vm_flags); in __test_merge_existing()
1246 vmg_set_range(&vmg, 0x4000, 0x6000, 4, vm_flags); in __test_merge_existing()
1252 vmg_set_range(&vmg, 0x5000, 0x6000, 5, vm_flags); in __test_merge_existing()
1278 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_anon_vma_non_mergeable() local
1302 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_anon_vma_non_mergeable()
1303 vma = alloc_and_link_vma(&mm, 0x3000, 0x7000, 3, vm_flags); in test_anon_vma_non_mergeable()
1304 vma_next = alloc_and_link_vma(&mm, 0x7000, 0x9000, 7, vm_flags); in test_anon_vma_non_mergeable()
1312 vmg_set_range_anon_vma(&vmg, 0x3000, 0x7000, 3, vm_flags, NULL); in test_anon_vma_non_mergeable()
1340 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_anon_vma_non_mergeable()
1341 vma_next = alloc_and_link_vma(&mm, 0x7000, 0x9000, 7, vm_flags); in test_anon_vma_non_mergeable()
1343 vmg_set_range_anon_vma(&vmg, 0x3000, 0x7000, 3, vm_flags, NULL); in test_anon_vma_non_mergeable()
1365 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_dup_anon_vma() local
1386 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_dup_anon_vma()
1387 vma_next = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1390 vmg_set_range(&vmg, 0, 0x5000, 0, vm_flags); in test_dup_anon_vma()
1412 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_dup_anon_vma()
1413 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1414 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x8000, 5, vm_flags); in test_dup_anon_vma()
1421 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1445 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_dup_anon_vma()
1446 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1447 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x8000, 5, vm_flags); in test_dup_anon_vma()
1450 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1474 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_dup_anon_vma()
1475 vma = alloc_and_link_vma(&mm, 0x3000, 0x8000, 3, vm_flags); in test_dup_anon_vma()
1478 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1502 vma = alloc_and_link_vma(&mm, 0, 0x5000, 0, vm_flags); in test_dup_anon_vma()
1503 vma_next = alloc_and_link_vma(&mm, 0x5000, 0x8000, 5, vm_flags); in test_dup_anon_vma()
1506 vmg_set_range(&vmg, 0x3000, 0x5000, 3, vm_flags); in test_dup_anon_vma()
1525 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_vmi_prealloc_fail() local
1541 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vmi_prealloc_fail()
1542 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vmi_prealloc_fail()
1545 vmg_set_range_anon_vma(&vmg, 0x3000, 0x5000, 3, vm_flags, &dummy_anon_vma); in test_vmi_prealloc_fail()
1569 vma_prev = alloc_and_link_vma(&mm, 0, 0x3000, 0, vm_flags); in test_vmi_prealloc_fail()
1570 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_vmi_prealloc_fail()
1573 vmg_set_range(&vmg, 0, 0x5000, 3, vm_flags); in test_vmi_prealloc_fail()
1591 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_merge_extend() local
1596 vma = alloc_and_link_vma(&mm, 0, 0x1000, 0, vm_flags); in test_merge_extend()
1597 alloc_and_link_vma(&mm, 0x3000, 0x4000, 3, vm_flags); in test_merge_extend()
1621 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_copy_vma() local
1629 vma = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_copy_vma()
1641 vma = alloc_and_link_vma(&mm, 0, 0x2000, 0, vm_flags); in test_copy_vma()
1642 vma_next = alloc_and_link_vma(&mm, 0x6000, 0x8000, 6, vm_flags); in test_copy_vma()
1654 vm_flags_t vm_flags = VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE; in test_expand_only_mode() local
1658 VMG_STATE(vmg, &mm, &vmi, 0x5000, 0x9000, vm_flags, 5); in test_expand_only_mode()
1666 alloc_and_link_vma(&mm, 0, 0x2000, 0, vm_flags); in test_expand_only_mode()
1673 vma_prev = alloc_and_link_vma(&mm, 0x3000, 0x5000, 3, vm_flags); in test_expand_only_mode()