lkml.org 
[lkml]   [2008]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 47/58] [GFS2] Allow page migration for writeback and ordered pages
    Date
    From: Steven Whitehouse <swhiteho@redhat.com>

    To improve performance on NUMA, we use the VM's standard page
    migration for writeback and ordered pages. Probably we could
    also do the same for journaled data, but that would need a
    careful audit of the code, so will be the subject of a later
    patch.

    Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

    diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
    index 8f94e30..e16ad81 100644
    --- a/fs/gfs2/ops_address.c
    +++ b/fs/gfs2/ops_address.c
    @@ -1098,6 +1098,7 @@ static const struct address_space_operations gfs2_writeback_aops = {
    .invalidatepage = gfs2_invalidatepage,
    .releasepage = gfs2_releasepage,
    .direct_IO = gfs2_direct_IO,
    + .migratepage = buffer_migrate_page,
    };

    static const struct address_space_operations gfs2_ordered_aops = {
    @@ -1112,6 +1113,7 @@ static const struct address_space_operations gfs2_ordered_aops = {
    .invalidatepage = gfs2_invalidatepage,
    .releasepage = gfs2_releasepage,
    .direct_IO = gfs2_direct_IO,
    + .migratepage = buffer_migrate_page,
    };

    static const struct address_space_operations gfs2_jdata_aops = {
    --
    1.5.1.2


    \
     
     \ /
      Last update: 2008-01-21 11:23    [W:0.022 / U:272.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site