Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Grr, the optimizer on mips64 can't handle this.....



details:   https://anonhg.NetBSD.org/src/rev/d76b9e98a27a
branches:  trunk
changeset: 348119:d76b9e98a27a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 04 16:46:20 2016 +0000

description:
Grr, the optimizer on mips64 can't handle this... Use MIN_PAGE_SIZE.

diffstat:

 sys/ufs/lfs/lfs_pages.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 59ad2f51bf52 -r d76b9e98a27a sys/ufs/lfs/lfs_pages.c
--- a/sys/ufs/lfs/lfs_pages.c   Tue Oct 04 16:22:43 2016 +0000
+++ b/sys/ufs/lfs/lfs_pages.c   Tue Oct 04 16:46:20 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_pages.c,v 1.8 2016/07/21 18:10:47 christos Exp $   */
+/*     $NetBSD: lfs_pages.c,v 1.9 2016/10/04 16:46:20 christos 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_pages.c,v 1.8 2016/07/21 18:10:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_pages.c,v 1.9 2016/10/04 16:46:20 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -244,8 +244,7 @@
 {
        int by_list;
        struct vm_page *curpg = NULL; /* XXX: gcc */
-       struct vm_page *pgs[MAXBSIZE /
-           (__builtin_constant_p(PAGE_SIZE) ? PAGE_SIZE : 1024)], *pg;
+       struct vm_page *pgs[MAXBSIZE / MIN_PAGE_SIZE], *pg;
        off_t soff = 0; /* XXX: gcc */
        voff_t off;
        int i;



Home | Main Index | Thread Index | Old Index