Re: SetPageDirty in shmem_nopage

From: Christoph Rohland (cr@sap.com)
Date: Sun Jan 14 2001 - 16:44:04 EST


Linus Torvalds <torvalds@transmeta.com> writes:

> On 14 Jan 2001, Christoph Rohland wrote:
> Why do you increment the use counter at all in nopage?

First to be able to limit the overall number of pages used by the
filesystem and second to have the right value for the number of blocks
in [f]stat.

Show me a way to get the overall number of vm pages in the fs and I
drop it in a minute.

> It looks like this code is all historical baggage from when the
> shm code didn't use the VM page cache?

No, it was introduced with the changes to use the page cache.

Greetings
                Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:39 EST