Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2023 16:16:37 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e08302f6499e - main - vm_fault: Update a comment to reflect the removal of the default pager
Message-ID:  <202303091616.329GGbQ7098078@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=e08302f6499e599b1d5db8bb266e2b8e4aa6b62e

commit e08302f6499e599b1d5db8bb266e2b8e4aa6b62e
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-09 16:15:49 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-09 16:15:49 +0000

    vm_fault: Update a comment to reflect the removal of the default pager
    
    Fixes:  5d32157d4e5c ("vm_object: Modify vm_object_allocate_anon() to return OBJT_SWAP objects")
    Reviewed by:    alc, kib
    Differential Revision:  https://reviews.freebsd.org/D38985
---
 sys/vm/vm_fault.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 87c15e972279..336cee7ca972 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1431,10 +1431,9 @@ vm_fault_object(struct faultstate *fs, int *behindp, int *aheadp)
 	}
 
 	/*
-	 * Default objects have no pager so no exclusive busy exists
-	 * to protect this page in the chain.  Skip to the next
-	 * object without dropping the lock to preserve atomicity of
-	 * shadow faults.
+	 * Check to see if the pager can possibly satisfy this fault.
+	 * If not, skip to the next object without dropping the lock to
+	 * preserve atomicity of shadow faults.
 	 */
 	if (fault_object_needs_getpages(fs->object)) {
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303091616.329GGbQ7098078>