From 212bff331248e00da998d4361eb0a3aed8c0fef3 Mon Sep 17 00:00:00 2001 From: beck Date: Wed, 26 Apr 2023 15:13:52 +0000 Subject: [PATCH] Fix splassert noticed by sthen Called wrong incore when not holding bio. ok claudio@ --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index c011580e119..3b2d209868b 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.211 2023/04/24 16:46:43 beck Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.212 2023/04/26 15:13:52 beck Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /* @@ -499,7 +499,7 @@ breadn(struct vnode *vp, daddr_t blkno, int size, daddr_t rablks[], */ for (i = 0; i < nrablks; i++) { /* If it's in the cache, just go on to next one. */ - if (incore_locked(vp, rablks[i])) + if (incore(vp, rablks[i])) continue; /* Get a buffer for the read-ahead block */ -- 2.20.1