vm_mmap.c (e8bcf6966bbe60f44cae155e729608e50a802b32) | vm_mmap.c (0012f373e43db2341c20329163ed2d5ad3b0f341) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1988 University of Utah. 5 * Copyright (c) 1991, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 879 unchanged lines hidden (view full) --- 888 vm_page_unlock(m); 889 if (!locked) { 890 VM_OBJECT_WLOCK(object); 891 vm_page_lock(m); 892 goto retry; 893 } 894 } else 895 vm_page_unlock(m); | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1988 University of Utah. 5 * Copyright (c) 1991, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 879 unchanged lines hidden (view full) --- 888 vm_page_unlock(m); 889 if (!locked) { 890 VM_OBJECT_WLOCK(object); 891 vm_page_lock(m); 892 goto retry; 893 } 894 } else 895 vm_page_unlock(m); |
896 KASSERT(m->valid == VM_PAGE_BITS_ALL, | 896 KASSERT(vm_page_all_valid(m), |
897 ("mincore: page %p is mapped but invalid", 898 m)); 899 } else if (mincoreinfo == 0) { 900 /* 901 * The page is not mapped by this process. If 902 * the object implements managed pages, then 903 * determine if the page is resident so that 904 * the mappings might be examined. --- 5 unchanged lines hidden (view full) --- 910 VM_OBJECT_WLOCK(object); 911 } 912 if (object->type == OBJT_DEFAULT || 913 object->type == OBJT_SWAP || 914 object->type == OBJT_VNODE) { 915 pindex = OFF_TO_IDX(current->offset + 916 (addr - current->start)); 917 m = vm_page_lookup(object, pindex); | 897 ("mincore: page %p is mapped but invalid", 898 m)); 899 } else if (mincoreinfo == 0) { 900 /* 901 * The page is not mapped by this process. If 902 * the object implements managed pages, then 903 * determine if the page is resident so that 904 * the mappings might be examined. --- 5 unchanged lines hidden (view full) --- 910 VM_OBJECT_WLOCK(object); 911 } 912 if (object->type == OBJT_DEFAULT || 913 object->type == OBJT_SWAP || 914 object->type == OBJT_VNODE) { 915 pindex = OFF_TO_IDX(current->offset + 916 (addr - current->start)); 917 m = vm_page_lookup(object, pindex); |
918 if (m != NULL && m->valid == 0) | 918 if (m != NULL && vm_page_none_valid(m)) |
919 m = NULL; 920 if (m != NULL) 921 mincoreinfo = MINCORE_INCORE; 922 } 923 } 924 if (m != NULL) { 925 /* Examine other mappings to the page. */ 926 if (m->dirty == 0 && pmap_is_modified(m)) --- 721 unchanged lines hidden --- | 919 m = NULL; 920 if (m != NULL) 921 mincoreinfo = MINCORE_INCORE; 922 } 923 } 924 if (m != NULL) { 925 /* Examine other mappings to the page. */ 926 if (m->dirty == 0 && pmap_is_modified(m)) --- 721 unchanged lines hidden --- |