Re: classzone-VM + mapped pages out of lru_cache

From: Andrea Arcangeli (andrea@suse.de)
Date: Thu May 04 2000 - 10:23:35 EST


On Thu, 4 May 2000, Andrea Arcangeli wrote:

>--- 2.2.15/mm/filemap.c Thu May 4 13:00:40 2000
>+++ /tmp/filemap.c Thu May 4 17:11:18 2000
>@@ -68,7 +68,7 @@
>
> p = &inode->i_pages;
> while ((page = *p) != NULL) {
>- if (PageLocked(page)) {
>+ if (PageLocked(page) || atomic_read(&page->count) > 1) {
> p = &page->next;
> continue;
> }

above patch is also here:

        ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/patches/v2.2/2.2.15/invalidate_inode_pages-1

Andrea

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



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:15 EST