Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs When initializing more inodes make sure to write...



details:   https://anonhg.NetBSD.org/src/rev/ffac2db97ad6
branches:  trunk
changeset: 825380:ffac2db97ad6
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Jul 12 09:30:16 2017 +0000

description:
When initializing more inodes make sure to write them to disk
before writing the cylinder group with updated cg_initediblk.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r de1b2daa2378 -r ffac2db97ad6 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Wed Jul 12 08:18:36 2017 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Wed Jul 12 09:30:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.156 2017/03/18 05:20:04 riastradh Exp $        */
+/*     $NetBSD: ffs_alloc.c,v 1.157 2017/07/12 09:30:16 hannken Exp $  */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.156 2017/03/18 05:20:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.157 2017/07/12 09:30:16 hannken Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1379,8 +1379,8 @@
        }
        mutex_exit(&ump->um_lock);
        if (ibp != NULL) {
+               bwrite(ibp);
                bwrite(bp);
-               bawrite(ibp);
        } else
                bdwrite(bp);
        return (cg * fs->fs_ipg + ipref);



Home | Main Index | Thread Index | Old Index