From 0d8a7af5d6d445e0eb8b3396a594a0f889a66bb8 Mon Sep 17 00:00:00 2001 From: perseant Date: Wed, 18 Apr 2007 00:49:33 +0000 Subject: [PATCH] Remember to write dirops when the vnode we are trying to flush is a dirop. --- sys/ufs/lfs/lfs_inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ufs/lfs/lfs_inode.c b/sys/ufs/lfs/lfs_inode.c index f3f90de70fcf..af019ac502a9 100644 --- a/sys/ufs/lfs/lfs_inode.c +++ b/sys/ufs/lfs/lfs_inode.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_inode.c,v 1.107 2007/03/04 06:03:45 christos Exp $ */ +/* $NetBSD: lfs_inode.c,v 1.108 2007/04/18 00:49:33 perseant Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lfs_inode.c,v 1.107 2007/03/04 06:03:45 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_inode.c,v 1.108 2007/04/18 00:49:33 perseant Exp $"); #if defined(_KERNEL_OPT) #include "opt_quota.h" @@ -179,7 +179,7 @@ lfs_update(struct vnode *vp, const struct timespec *acc, DLOG((DLOG_DIROP, "lfs_update: vflags 0x%x, iflags" " 0x%x\n", vp->v_flag, ip->i_flag)); if (fs->lfs_dirops == 0) - lfs_flush_fs(fs, SEGM_SYNC); + lfs_flush_fs(fs, SEGM_SYNC | SEGM_W_DIROPS); else ltsleep(&fs->lfs_writer, PRIBIO+1, "lfs_fsync", 0, &fs->lfs_interlock);