Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Revert this back to 2 revisions ago, these check...
details: https://anonhg.NetBSD.org/src/rev/9bc691a00aa8
branches: trunk
changeset: 483678:9bc691a00aa8
user: fvdl <fvdl%NetBSD.org@localhost>
date: Wed Mar 15 16:31:52 2000 +0000
description:
Revert this back to 2 revisions ago, these checks are done higher up now.
diffstat:
sys/ufs/ffs/ffs_vnops.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (42 lines):
diff -r 5c2f78c748fe -r 9bc691a00aa8 sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c Wed Mar 15 16:30:39 2000 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c Wed Mar 15 16:31:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_vnops.c,v 1.22 2000/03/14 13:06:29 fvdl Exp $ */
+/* $NetBSD: ffs_vnops.c,v 1.23 2000/03/15 16:31:52 fvdl Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -245,7 +245,6 @@
struct proc *a_p;
} */ *ap = v;
struct vnode *vp = ap->a_vp;
- struct inode *ip;
struct buf *bp, *nbp;
struct timespec ts;
int s, error, passes, skipmeta;
@@ -255,16 +254,6 @@
(vp->v_specmountpoint->mnt_flag & MNT_SOFTDEP))
softdep_fsync_mountdev(vp);
- 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 && !DOINGSOFTDEP(vp) &&
- (ip->i_flag & (IN_MODIFIED|IN_UPDATE|IN_CHANGE|IN_ACCESS))==0) {
- splx(s);
- return 0;
- }
- splx(s);
-
/*
* Flush all dirty buffers associated with a vnode
*/
@@ -318,6 +307,7 @@
return 0;
}
+
/*
* Ensure that any filesystem metadata associated
* with the vnode has been written.
Home |
Main Index |
Thread Index |
Old Index