Re: [PATCH] modified segq for 2.5

Andrew Morton
2002-09-09T20:51:54Z

Rik van Riel wrote:
>
> ...
> > > Hmmm indeed, I forgot this. Note that IO completion state is
> > > too late, since then you'll have already pushed other pages
> > > out to the inactive list...
> >
> > OK. So how would you like to handle those pages?
>
> Move them to the inactive list the moment we're done writing
> them, that is, the moment we move on to the next page. We
> wouldn't want to move the last page from /var/log/messages to
> the inactive list all the time ;)

The moment "who" has done writing them? Some writeout
comes in via shrink_foo() and a ton of writeout comes in
via balance_dirty_pages(), pdflush, etc.

Do we need to distinguish between the various contexts?