Source-Changes-HG archive

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

[src/fvdl-softdep]: src/sys/ufs/ufs Fix a case where ffs_update should not be...



details:   https://anonhg.NetBSD.org/src/rev/734705c3691d
branches:  fvdl-softdep
changeset: 477514:734705c3691d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Oct 27 12:38:52 1999 +0000

description:
Fix a case where ffs_update should not be called to do its work
synchronously when softdepencies are active.

diffstat:

 sys/ufs/ufs/ufs_vnops.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e60847668262 -r 734705c3691d sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c   Tue Oct 26 23:20:11 1999 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c   Wed Oct 27 12:38:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_vnops.c,v 1.58.4.1 1999/10/19 12:50:54 fvdl Exp $  */
+/*     $NetBSD: ufs_vnops.c,v 1.58.4.2 1999/10/27 12:38:52 fvdl Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993, 1995
@@ -1204,7 +1204,7 @@
                softdep_increase_linkcnt(ip);
        if (cnp->cn_flags & ISWHITEOUT)
                ip->i_ffs_flags |= UF_OPAQUE;
-       error = VOP_UPDATE(tvp, NULL, NULL, 1);
+       error = VOP_UPDATE(tvp, NULL, NULL, !DOINGSOFTDEP(tvp));
 
        /*
         * Bump link count in parent directory to reflect work done below.



Home | Main Index | Thread Index | Old Index