Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs comments on lfs_issequential_hole.



details:   https://anonhg.NetBSD.org/src/rev/2896f5e5be15
branches:  trunk
changeset: 551523:2896f5e5be15
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Sep 07 21:00:36 2003 +0000

description:
comments on lfs_issequential_hole.

diffstat:

 sys/ufs/lfs/lfs_vfsops.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r 51d6f32fc4c1 -r 2896f5e5be15 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Sun Sep 07 20:41:27 2003 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Sun Sep 07 21:00:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vfsops.c,v 1.130 2003/08/07 16:34:39 agc Exp $     */
+/*     $NetBSD: lfs_vfsops.c,v 1.131 2003/09/07 21:00:36 yamt Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.130 2003/08/07 16:34:39 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.131 2003/09/07 21:00:36 yamt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -1731,6 +1731,12 @@
        /* NOTREACHED */
 }
 
+/*
+ * ufs_bmaparray callback function for writing.
+ *
+ * Since blocks will be written to the new segment anyway,
+ * we don't care about current daddr of them.
+ */
 static boolean_t
 lfs_issequential_hole(const struct ufsmount *ump,
     daddr_t daddr0, daddr_t daddr1)
@@ -1742,6 +1748,7 @@
            (0 <= daddr1 && daddr1 <= LFS_MAX_DADDR));
 
        /* NOTE: all we want to know here is 'hole or not'. */
+       /* NOTE: UNASSIGNED is converted to 0 by ufs_bmaparray. */
 
        /*
         * treat UNWRITTENs and all resident blocks as 'contiguous'



Home | Main Index | Thread Index | Old Index