git: 6a8558cf9f01 - main - vm/vm_phys.c: allow PHYS_TO_VM_PAGE(0) for registered fictitious page @0

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7b2321.1f29e.4e7f6e22__41818.2845389069$1786454866$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kib:

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

commit 6a8558cf9f0190cb166042f97d2c883d822e66b2
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-10 18:09:11 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-11 13:26:35 +0000

    vm/vm_phys.c: allow PHYS_TO_VM_PAGE(0) for registered fictitious page @0
    
    PR:     296348
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D58785
---
 sys/vm/vm_phys.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c
index 975754264fee..509d71b69854 100644
--- a/sys/vm/vm_phys.c
+++ b/sys/vm/vm_phys.c
@@ -212,9 +212,6 @@ static inline int
 vm_phys_fictitious_in_range(struct vm_phys_fictitious_seg *p,
     struct vm_phys_fictitious_seg *range)
 {
-
-	KASSERT(range->start != 0 && range->end != 0,
-	    ("Invalid range passed on search for vm_fictitious page"));
 	if (p->start >= range->end)
 		return (1);
 	if (p->start < range->start)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.