Don't do variable stack allocations for systems with non-const PAGE_SIZE;
instead assume that the smallest pagesize is 1024.
This commit is contained in:
parent
687ac45a6a
commit
90668226c4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs_pages.c,v 1.7 2015/08/12 18:26:27 dholland Exp $ */
|
||||
/* $NetBSD: lfs_pages.c,v 1.8 2016/07/21 18:10:47 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.7 2015/08/12 18:26:27 dholland Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_pages.c,v 1.8 2016/07/21 18:10:47 christos Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -244,7 +244,8 @@ check_dirty(struct lfs *fs, struct vnode *vp,
|
||||
{
|
||||
int by_list;
|
||||
struct vm_page *curpg = NULL; /* XXX: gcc */
|
||||
struct vm_page *pgs[MAXBSIZE / PAGE_SIZE], *pg;
|
||||
struct vm_page *pgs[MAXBSIZE /
|
||||
(__builtin_constant_p(PAGE_SIZE) ? PAGE_SIZE : 1024)], *pg;
|
||||
off_t soff = 0; /* XXX: gcc */
|
||||
voff_t off;
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user