Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs configdirs was changed to an array of u_int8_t, ...



details:   https://anonhg.NetBSD.org/src/rev/855d7d65daa0
branches:  trunk
changeset: 545864:855d7d65daa0
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Apr 17 09:32:43 2003 +0000

description:
configdirs was changed to an array of u_int8_t, so don't compare values
to 65535.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5754219f2c3d -r 855d7d65daa0 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Thu Apr 17 09:21:01 2003 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Thu Apr 17 09:32:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.62 2003/04/12 10:33:17 fvdl Exp $      */
+/*     $NetBSD: ffs_alloc.c,v 1.63 2003/04/17 09:32:43 fvdl Exp $      */
 
 /*
  * Copyright (c) 2002 Networks Associates Technology, Inc.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.62 2003/04/12 10:33:17 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.63 2003/04/17 09:32:43 fvdl Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -690,7 +690,7 @@
         * in a same cg without intervening by files.
         */
        if ((mode & IFMT) == IFDIR) {
-               if (fs->fs_contigdirs[cg] < 65535)
+               if (fs->fs_contigdirs[cg] < 255)
                        fs->fs_contigdirs[cg]++;
        } else {
                if (fs->fs_contigdirs[cg] > 0)



Home | Main Index | Thread Index | Old Index