Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs If we're reclaiming, and there are no dirty bloc...
details: https://anonhg.NetBSD.org/src/rev/134fe42ed872
branches: trunk
changeset: 483748:134fe42ed872
user: fvdl <fvdl%NetBSD.org@localhost>
date: Fri Mar 17 01:26:52 2000 +0000
description:
If we're reclaiming, and there are no dirty blocks, just return.
diffstat:
sys/ufs/ffs/ffs_vnops.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 8eaba744b61c -r 134fe42ed872 sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c Fri Mar 17 01:25:06 2000 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c Fri Mar 17 01:26:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_vnops.c,v 1.23 2000/03/15 16:31:52 fvdl Exp $ */
+/* $NetBSD: ffs_vnops.c,v 1.24 2000/03/17 01:26:52 fvdl Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -249,6 +249,9 @@
struct timespec ts;
int s, error, passes, skipmeta;
+ if (vp->v_dirtyblkhd.lh_first == NULL && (ap->a_flags & FSYNC_RECLAIM))
+ return 0;
+
if (vp->v_type == VBLK &&
vp->v_specmountpoint != NULL &&
(vp->v_specmountpoint->mnt_flag & MNT_SOFTDEP))
Home |
Main Index |
Thread Index |
Old Index