Make sync_page use swapper_space again
Subsystems (3)
PATCH 5/57 Make sync_page use swapper_space again
Revert recent changes to sync_page(). Now that page_mapping() returns &swapper_space for swapcache pages we don't need to test for PageSwapCache in sync_page().
---
25-akpm/mm/filemap.c | 11 +++++------ 25-akpm/mm/swap_state.c | 1 + 2 files changed, 6 insertions(+), 6 deletions(-)
mm/filemap.c renamed from mm/filemap.c~sync_page-use-swapper-space +5 -6
@@ -121,14 +121,13 @@ static inline int sync_page(struct page {struct address_space *mapping; +/* +* FIXME, fercrissake. What is this barrier here for? +*/ smp_mb (); mapping =page_mapping (page); -if (mapping) { -if (mapping->a_ops && mapping->a_ops->sync_page) -return mapping->a_ops->sync_page (page); - }else if (PageSwapCache (page)) { -swap_unplug_io_fn (NULL , page); - } +if (mapping && mapping->a_ops && mapping->a_ops->sync_page) +return mapping->a_ops->sync_page (page);return 0 ; }
mm/swap_state.c renamed from mm/swap_state.c~sync_page-use-swapper-space +1 -0
@@ -23,6 +23,7 @@*/ static struct address_space_operations swap_aops = { .writepage = swap_writepage, + .sync_page = block_sync_page, .set_page_dirty = __set_page_dirty_nobuffers, };
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>