summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-09 23:31:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-09 23:31:33 +0000
commit3e843028a9f6ea5a58109d1c2d41e2c48617b34d (patch)
treed1d8095ee20508eed93270b0c5caacfec438f5ea /sys/ufs/ffs
parent6e436046b94ddac6daa8b61e7b92ee6656b345c6 (diff)
In ffs_write, do not deref to get the p_ucred for VOP_FSYNC (aka ffs_fsync)
when softdep runs out, since it does not use it. In the nfsiod case, that ucred is pointless, and ffs_fsync does not use it in any case. This does not conflict with thib's plans moving forward ok thib
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 35ac0c9ffb5..a155b0b8363 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vnops.c,v 1.62 2011/04/12 19:45:43 beck Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.63 2011/06/09 23:31:32 deraadt Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
@@ -433,7 +433,7 @@ ffs_write(void *v)
* buffers force a sync on the vnode to prevent
* buffer cache exhaustion.
*/
- VOP_FSYNC(vp, p->p_ucred, MNT_WAIT, p);
+ VOP_FSYNC(vp, NULL, MNT_WAIT, p);
}
}
return (error);