RE: [patch] add an iterator index in struct pagevec

2006-12-04 Thread Chen, Kenneth W
Andrew Morton wrote on Monday, December 04, 2006 9:45 PM > On Mon, 4 Dec 2006 21:21:31 -0800 > "Chen, Kenneth W" <[EMAIL PROTECTED]> wrote: > > > pagevec is never expected to be more than PAGEVEC_SIZE, I think a > > unsigned char is enough to count them. This patch makes nr, cold > > to be unsign

Re: [patch] add an iterator index in struct pagevec

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 21:21:31 -0800 "Chen, Kenneth W" <[EMAIL PROTECTED]> wrote: > pagevec is never expected to be more than PAGEVEC_SIZE, I think a > unsigned char is enough to count them. This patch makes nr, cold > to be unsigned char Is that on the right side of the speed/space tradeoff? > an

[patch] add an iterator index in struct pagevec

2006-12-04 Thread Chen, Kenneth W
pagevec is never expected to be more than PAGEVEC_SIZE, I think a unsigned char is enough to count them. This patch makes nr, cold to be unsigned char and also adds an iterator index. With that, the size can be even bumped up by 1 to 15. Signed-off-by: Ken Chen <[EMAIL PROTECTED]> diff -Nurp li