Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/sys/kern Regen (for ticket #307)
details: https://anonhg.NetBSD.org/src/rev/fdbbbd884a7f
branches: netbsd-9
changeset: 963105:fdbbbd884a7f
user: martin <martin%NetBSD.org@localhost>
date: Tue Oct 15 18:13:55 2019 +0000
description:
Regen (for ticket #307)
diffstat:
sys/kern/vnode_if.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (79 lines):
diff -r a5e783ea5cd1 -r fdbbbd884a7f sys/kern/vnode_if.c
--- a/sys/kern/vnode_if.c Tue Oct 15 18:12:25 2019 +0000
+++ b/sys/kern/vnode_if.c Tue Oct 15 18:13:55 2019 +0000
@@ -1,13 +1,13 @@
-/* $NetBSD: vnode_if.c,v 1.107 2017/07/12 09:31:59 hannken Exp $ */
+/* $NetBSD: vnode_if.c,v 1.107.10.1 2019/10/15 18:13:55 martin Exp $ */
/*
* Warning: DO NOT EDIT! This file is automatically generated!
* (Modifications made here may easily be lost!)
*
* Created from the file:
- * NetBSD: vnode_if.src,v 1.77 2017/07/12 09:31:07 hannken Exp
+ * NetBSD: vnode_if.src,v 1.77.10.1 2019/10/15 18:12:25 martin Exp
* by the script:
- * NetBSD: vnode_if.sh,v 1.66 2017/06/04 08:03:26 hannken Exp
+ * NetBSD: vnode_if.sh,v 1.66.10.1 2019/10/15 18:12:25 martin Exp
*/
/*
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.107 2017/07/12 09:31:59 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.107.10.1 2019/10/15 18:13:55 martin Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -49,7 +49,7 @@
#include <sys/lock.h>
#include <sys/fstrans.h>
-enum fst_op { FST_NO, FST_YES, FST_TRY };
+enum fst_op { FST_NO, FST_YES, FST_LAZY, FST_TRY };
static inline int
vop_pre(vnode_t *vp, struct mount **mp, bool *mpsafe, enum fst_op op)
@@ -62,7 +62,7 @@
KERNEL_LOCK(1, curlwp);
}
- if (op == FST_YES || op == FST_TRY) {
+ if (op == FST_YES || op == FST_LAZY || op == FST_TRY) {
for (;;) {
*mp = vp->v_mount;
if (op == FST_TRY) {
@@ -73,6 +73,8 @@
}
return error;
}
+ } else if (op == FST_LAZY) {
+ fstrans_start_lazy(*mp);
} else {
fstrans_start(*mp);
}
@@ -91,7 +93,7 @@
vop_post(vnode_t *vp, struct mount *mp, bool mpsafe, enum fst_op op)
{
- if (op == FST_YES) {
+ if (op == FST_YES || op == FST_LAZY) {
fstrans_done(mp);
}
@@ -1378,11 +1380,11 @@
a.a_desc = VDESC(vop_strategy);
a.a_vp = vp;
a.a_bp = bp;
- error = vop_pre(vp, &mp, &mpsafe, FST_YES);
+ error = vop_pre(vp, &mp, &mpsafe, FST_LAZY);
if (error)
return error;
error = (VCALL(vp, VOFFSET(vop_strategy), &a));
- vop_post(vp, mp, mpsafe, FST_YES);
+ vop_post(vp, mp, mpsafe, FST_LAZY);
return error;
}
Home |
Main Index |
Thread Index |
Old Index