浏览代码

[GFS2] Allow page migration for writeback and ordered pages

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>
Steven Whitehouse 17 年之前
父节点
当前提交
e5d9dc278c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/gfs2/ops_address.c

+ 2 - 0
fs/gfs2/ops_address.c

@@ -1098,6 +1098,7 @@ static const struct address_space_operations gfs2_writeback_aops = {
 	.invalidatepage = gfs2_invalidatepage,
 	.invalidatepage = gfs2_invalidatepage,
 	.releasepage = gfs2_releasepage,
 	.releasepage = gfs2_releasepage,
 	.direct_IO = gfs2_direct_IO,
 	.direct_IO = gfs2_direct_IO,
+	.migratepage = buffer_migrate_page,
 };
 };
 
 
 static const struct address_space_operations gfs2_ordered_aops = {
 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,
 	.invalidatepage = gfs2_invalidatepage,
 	.releasepage = gfs2_releasepage,
 	.releasepage = gfs2_releasepage,
 	.direct_IO = gfs2_direct_IO,
 	.direct_IO = gfs2_direct_IO,
+	.migratepage = buffer_migrate_page,
 };
 };
 
 
 static const struct address_space_operations gfs2_jdata_aops = {
 static const struct address_space_operations gfs2_jdata_aops = {