linux-next/Documentation
Hugh Dickins cf4b769abb mm: page migration avoid touching newpage until no going back
We have had trouble in the past from the way in which page migration's
newpage is initialized in dribs and drabs - see commit 8bdd63809160 ("mm:
fix direct reclaim writeback regression") which proposed a cleanup.

We have no actual problem now, but I think the procedure would be clearer
(and alternative get_new_page pools safer to implement) if we assert that
newpage is not touched until we are sure that it's going to be used -
except for taking the trylock on it in __unmap_and_move().

So shift the early initializations from move_to_new_page() into
migrate_page_move_mapping(), mapping and NULL-mapping paths.  Similarly
migrate_huge_page_move_mapping(), but its NULL-mapping path can just be
deleted: you cannot reach hugetlbfs_migrate_page() with a NULL mapping.

Adjust stages 3 to 8 in the Documentation file accordingly.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-11-05 19:34:48 -08:00
..
2015-11-04 22:15:15 -08:00
2015-11-04 14:47:13 -08:00
2015-11-04 14:47:13 -08:00
2015-11-04 22:15:15 -08:00
2015-11-04 21:40:53 -08:00
2015-11-04 14:47:13 -08:00
2015-08-28 22:59:36 -04:00
2015-09-19 11:39:02 -07:00
2015-11-04 22:15:15 -08:00
2015-06-08 16:43:09 -06:00
2014-12-10 17:41:10 -08:00
2015-10-26 16:00:09 +01:00
2015-06-08 23:15:45 +02:00
2015-06-26 11:23:38 -04:00
2015-09-02 12:22:54 -07:00
2015-07-14 12:35:42 -06:00
2015-08-22 14:57:59 -07:00
2015-06-24 20:01:36 -07:00
2015-02-27 11:44:24 -08:00
2014-12-08 09:07:11 -05:00
2015-06-23 06:49:44 -06:00
2014-09-23 23:44:16 -07:00