Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Don't immediately return in ffs_fsync if there a...
details: https://anonhg.NetBSD.org/src/rev/afd2ee479870
branches: trunk
changeset: 483627:afd2ee479870
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Mar 14 13:06:29 2000 +0000
description:
Don't immediately return in ffs_fsync if there appears to be no data
to flush if it's a vnode on a softdep filesystem. softdep_sync_metadata
may still need to do some work.
diffstat:
sys/ufs/ffs/ffs_vnops.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e20ad53332ec -r afd2ee479870 sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c Tue Mar 14 10:26:10 2000 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c Tue Mar 14 13:06:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_vnops.c,v 1.21 2000/03/11 05:00:19 perseant Exp $ */
+/* $NetBSD: ffs_vnops.c,v 1.22 2000/03/14 13:06:29 fvdl Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -258,7 +258,7 @@
ip = VTOI(vp);
s = splbio();
/* XXX can there be dirty blocks if the inode's flags are empty? */
- if (vp->v_dirtyblkhd.lh_first == NULL &&
+ if (vp->v_dirtyblkhd.lh_first == NULL && !DOINGSOFTDEP(vp) &&
(ip->i_flag & (IN_MODIFIED|IN_UPDATE|IN_CHANGE|IN_ACCESS))==0) {
splx(s);
return 0;
Home |
Main Index |
Thread Index |
Old Index