lkml.org 
[lkml]   [1997]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectPage cache patch - less aggressive
    As suggested by Mark Hemment, I used age_page instead of setting
    page->age to 0. It works for me. I'm sorry, Werner. Please, compare
    both and choose the better.
    Krzysztof Strasburger

    --- linux/mm/filemap.c.orig Tue May 6 07:37:23 1997
    +++ linux/mm/filemap.c Tue Jul 1 09:21:10 1997
    @@ -22,6 +22,7 @@
    #include <linux/locks.h>
    #include <linux/pagemap.h>
    #include <linux/swap.h>
    +#include <linux/swapctl.h>

    #include <asm/segment.h>
    #include <asm/system.h>
    @@ -187,7 +188,11 @@

    default:
    /* more than one users: we can't throw it away */
    - set_bit(PG_referenced, &page->flags);
    + /* Original: make the shared page inviolable. */
    + /* >set_bit(PG_referenced, &page->flags); */
    + /* Modified: make it good candidate for swapping out. */
    + /* page->age = 0; */
    + age_page(page);
    /* fall through */
    case 0:
    /* nothing */
    \
     
     \ /
      Last update: 2005-03-22 13:39    [W:3.333 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site