Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Fix stupid thinko.



details:   https://anonhg.NetBSD.org/src/rev/3ca60c2072ef
branches:  trunk
changeset: 346929:3ca60c2072ef
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Aug 07 02:42:32 2016 +0000

description:
Fix stupid thinko.

diffstat:

 sys/ufs/lfs/lfs_balloc.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r d19cb4d4fa80 -r 3ca60c2072ef sys/ufs/lfs/lfs_balloc.c
--- a/sys/ufs/lfs/lfs_balloc.c  Sun Aug 07 02:40:41 2016 +0000
+++ b/sys/ufs/lfs/lfs_balloc.c  Sun Aug 07 02:42:32 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_balloc.c,v 1.90 2016/08/07 02:31:03 dholland Exp $ */
+/*     $NetBSD: lfs_balloc.c,v 1.91 2016/08/07 02:42:32 dholland 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_balloc.c,v 1.90 2016/08/07 02:31:03 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_balloc.c,v 1.91 2016/08/07 02:42:32 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -502,15 +502,15 @@
        /* (XXX: except it's not clear what purpose it serves) */
        extern long locked_queue_bytes;
 
+       ip = VTOI(vp);
+       fs = ip->i_lfs;
+
        /*
         * XXX: is there some reason we know more about the seglock
         * state here than at the top of lfs_balloc?
         */
        ASSERT_NO_SEGLOCK(fs);
 
-       ip = VTOI(vp);
-       fs = ip->i_lfs;
-
        /* number of frags we're adding */
        frags = (long)lfs_numfrags(fs, nsize - osize);
 



Home | Main Index | Thread Index | Old Index