Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Just use VOP_BWRITE for lfs_bwrite_log.



details:   https://anonhg.NetBSD.org/src/rev/180de816c42d
branches:  trunk
changeset: 745124:180de816c42d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 23 08:39:09 2020 +0000

description:
Just use VOP_BWRITE for lfs_bwrite_log.

Hope this doesn't cause trouble with vfs_suspend.

diffstat:

 sys/ufs/lfs/lfs_debug.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r 5fe06b801832 -r 180de816c42d sys/ufs/lfs/lfs_debug.c
--- a/sys/ufs/lfs/lfs_debug.c   Sun Feb 23 08:38:58 2020 +0000
+++ b/sys/ufs/lfs/lfs_debug.c   Sun Feb 23 08:39:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_debug.c,v 1.54 2015/09/01 06:12:04 dholland Exp $  */
+/*     $NetBSD: lfs_debug.c,v 1.55 2020/02/23 08:39:09 riastradh Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_debug.c,v 1.54 2015/09/01 06:12:04 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_debug.c,v 1.55 2020/02/23 08:39:09 riastradh Exp $");
 
 #ifdef DEBUG
 
@@ -84,16 +84,12 @@
 int
 lfs_bwrite_log(struct buf *bp, const char *file, int line)
 {
-       struct vop_bwrite_args a;
-
-       a.a_desc = VDESC(vop_bwrite);
-       a.a_bp = bp;
 
        if (!(bp->b_flags & B_GATHERED) && !(bp->b_oflags & BO_DELWRI)) {
                LFS_ENTER_LOG("write", file, line, bp->b_lblkno, bp->b_flags,
                        curproc->p_pid);
        }
-       return (VCALL(bp->b_vp, VOFFSET(vop_bwrite), &a));
+       return VOP_BWRITE(bp->b_vp, bp);
 }
 
 void



Home | Main Index | Thread Index | Old Index