Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/kern regen (for ticket #1405)



details:   https://anonhg.NetBSD.org/src/rev/cc9d7cedf0c9
branches:  netbsd-8
changeset: 852587:cc9d7cedf0c9
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Oct 14 19:20:14 2019 +0000

description:
regen (for ticket #1405)

diffstat:

 sys/kern/vnode_if.c |  20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diffs (79 lines):

diff -r 27952c52372f -r cc9d7cedf0c9 sys/kern/vnode_if.c
--- a/sys/kern/vnode_if.c       Mon Oct 14 17:43:58 2019 +0000
+++ b/sys/kern/vnode_if.c       Mon Oct 14 19:20:14 2019 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: vnode_if.c,v 1.104.2.2 2017/07/25 01:29:56 snj Exp $   */
+/*     $NetBSD: vnode_if.c,v 1.104.2.3 2019/10/14 19:20:14 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.75.2.2 2017/07/25 01:29:23 snj Exp
+ *     NetBSD: vnode_if.src,v 1.75.2.3 2019/10/14 17:43:58 martin Exp
  * by the script:
- *     NetBSD: vnode_if.sh,v 1.64.4.1 2017/06/04 20:35:01 bouyer Exp
+ *     NetBSD: vnode_if.sh,v 1.64.4.2 2019/10/14 17:43:58 martin Exp
  */
 
 /*
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.104.2.2 2017/07/25 01:29:56 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.104.2.3 2019/10/14 19:20:14 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