From owner-cvs-all Sat Oct 3 09:19:36 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA21258 for cvs-all-outgoing; Sat, 3 Oct 1998 09:19:36 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA21244; Sat, 3 Oct 1998 09:19:34 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA21237; Sat, 3 Oct 1998 09:19:28 -0700 (PDT) Date: Sat, 3 Oct 1998 09:19:28 -0700 (PDT) Message-Id: <199810031619.JAA21237@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/sys buf.h src/sys/gnu/ext2fs ext2_linux_ialloc.c fs.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/10/03 09:19:28 PDT Modified files: sys/sys buf.h sys/gnu/ext2fs ext2_linux_ialloc.c fs.h Log: Quick fix for not being able to sync all the buffers in boot() if an ext2fs file system is mounted. The soft update changes added a check for B_DELWRI buffers. This exposed the complete brokenness of the previous quick fix for failing syncs (PR 3571, committed on 1997/08/04). Use a new buffer flag B_DIRTY and don't abuse B_DELWRI. B_DIRTY buffers are still written too late, as broken in the previous fix. This is fairly harmless, because B_DIRTY is only used for bitmap buffers and fsck.ext2 can fix up the bitmaps perfectly. Fixed a race in ULCK_BUF() (bremfree() was outside of the splbio() section). Revision Changes Path 1.59 +3 -3 src/sys/sys/buf.h 1.12 +1 -5 src/sys/gnu/ext2fs/ext2_linux_ialloc.c 1.4 +9 -3 src/sys/gnu/ext2fs/fs.h