Subject: Re: genfs_getpages and MAX_READ_AHEAD
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 06/10/2003 19:34:09
On Tuesday, June 10, 2003, at 06:36 PM, YAMAMOTO Takashi wrote:
> currently, genfs_getpages has a limit of number of pages.
> it's annoying because a caller should consider filesystem's block size
> to avoid assertion failure.
>
> how about following patch?
> although using alloca here is ...yucky,
> there're already variable-sized arrays around.
I think this patch is fine, except we need to be careful about stack
usage. Perhaps if the size grows to some limit, malloc()/free() are
used instead?
-- Jason R. Thorpe <thorpej@wasabisystems.com>