Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs remove deprecated comment (and move it below ass...



details:   https://anonhg.NetBSD.org/src/rev/c282f7f81a0e
branches:  trunk
changeset: 822769:c282f7f81a0e
user:      maya <maya%NetBSD.org@localhost>
date:      Thu Apr 06 03:15:03 2017 +0000

description:
remove deprecated comment (and move it below assert)
there's no spl dance for I/O here.

diffstat:

 sys/ufs/lfs/lfs_segment.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 3487a5f685e3 -r c282f7f81a0e sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Thu Apr 06 03:12:48 2017 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Thu Apr 06 03:15:03 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_segment.c,v 1.267 2017/04/06 02:38:08 maya Exp $   */
+/*     $NetBSD: lfs_segment.c,v 1.268 2017/04/06 03:15:03 maya 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_segment.c,v 1.267 2017/04/06 02:38:08 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.268 2017/04/06 03:15:03 maya Exp $");
 
 #ifdef DEBUG
 # define vndebug(vp, str) do {                                         \
@@ -1304,12 +1304,10 @@
        int j, blksinblk;
 
        ASSERT_SEGLOCK(sp->fs);
-       /*
-        * If full, finish this segment.  We may be doing I/O, so
-        * release and reacquire the splbio().
-        */
        KASSERTMSG((sp->vp != NULL),
            "lfs_gatherblock: Null vp in segment");
+
+       /* If full, finish this segment. */
        fs = sp->fs;
        blksinblk = howmany(bp->b_bcount, lfs_sb_getbsize(fs));
        if (sp->sum_bytes_left < sizeof(int32_t) * blksinblk ||



Home | Main Index | Thread Index | Old Index