Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Make some comments match better in ulfs_readwrite.



details:   https://anonhg.NetBSD.org/src/rev/5b857839d4be
branches:  trunk
changeset: 336968:5b857839d4be
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 28 17:08:53 2015 +0000

description:
Make some comments match better in ulfs_readwrite.

diffstat:

 sys/ufs/lfs/ulfs_readwrite.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r c81f0ab42d27 -r 5b857839d4be sys/ufs/lfs/ulfs_readwrite.c
--- a/sys/ufs/lfs/ulfs_readwrite.c      Sat Mar 28 17:06:15 2015 +0000
+++ b/sys/ufs/lfs/ulfs_readwrite.c      Sat Mar 28 17:08:53 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulfs_readwrite.c,v 1.11 2015/03/28 17:06:15 riastradh Exp $    */
+/*     $NetBSD: ulfs_readwrite.c,v 1.12 2015/03/28 17:08:53 riastradh Exp $    */
 /*  from NetBSD: ufs_readwrite.c,v 1.105 2013/01/22 09:39:18 dholland Exp  */
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.11 2015/03/28 17:06:15 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.12 2015/03/28 17:08:53 riastradh Exp $");
 
 #ifdef LFS_READWRITE
 #define        FS                      struct lfs
@@ -506,7 +506,7 @@
        lfs_check(vp, LFS_UNUSED_LBN, 0);
 #endif /* !LFS_READWRITE */
 
-       /* XXX Should never have cached pages here.  */
+       /* XXX Should never have pages cached here.  */
        mutex_enter(vp->v_interlock);
        VOP_PUTPAGES(vp, trunc_page(origoff), round_page(origoff + resid),
            PGO_CLEANIT | PGO_FREE | PGO_SYNCIO | PGO_JOURNALLOCKED);
@@ -633,6 +633,8 @@
        } else {
                /* nothing */
        }
+
+       /* Make sure the vnode uvm size matches the inode file size.  */
        KASSERT(vp->v_size == ip->i_size);
 
        return error;



Home | Main Index | Thread Index | Old Index