]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] Allow page migration for writeback and ordered pages
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Jan 2008 11:31:38 +0000 (11:31 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:16:41 +0000 (08:16 +0000)
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>
fs/gfs2/ops_address.c

index 8f94e306c8626b5618faa8d89f84dcd5c192bc20..e16ad8104495bcca8d66869681701b4dd1080c13 100644 (file)
@@ -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 = {