Subject: Re: genfs_getpages and MAX_READ_AHEAD
To: YAMAMOTO Takashi <firstname.lastname@example.org>
From: Jason Thorpe <email@example.com>
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
-- Jason R. Thorpe <firstname.lastname@example.org>