The patch titled Subject: ksm: clean up page_trans_compound_anon_split() has been added to the -mm tree. Its filename is ksm-clean-up-page_trans_compound_anon_split.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Bob Liu <lliubbo@xxxxxxxxx> Subject: ksm: clean up page_trans_compound_anon_split() Signed-off-by: Bob Liu <lliubbo@xxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Hiroyuki Kamezawa <kamezawa.hiroyuki@xxxxxxxxx> Cc: Minchan Kim <minchan.kim@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/ksm.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff -puN mm/ksm.c~ksm-clean-up-page_trans_compound_anon_split mm/ksm.c --- a/mm/ksm.c~ksm-clean-up-page_trans_compound_anon_split +++ a/mm/ksm.c @@ -817,7 +817,7 @@ out: static int page_trans_compound_anon_split(struct page *page) { - int ret = 0; + int ret = 1; struct page *transhuge_head = page_trans_compound_anon(page); if (transhuge_head) { /* Get the reference on the head to split it. */ @@ -828,16 +828,8 @@ static int page_trans_compound_anon_spli */ if (PageAnon(transhuge_head)) ret = split_huge_page(transhuge_head); - else - /* - * Retry later if split_huge_page run - * from under us. - */ - ret = 1; put_page(transhuge_head); - } else - /* Retry later if split_huge_page run from under us. */ - ret = 1; + } } return ret; } _ Subject: Subject: ksm: clean up page_trans_compound_anon_split() Patches currently in -mm which might be from lliubbo@xxxxxxxxx are linux-next.patch ksm-clean-up-page_trans_compound_anon_split.patch ksm-cleanup-introduce-ksm_check_mm.patch ksm-cleanup-introduce-ksm_check_mm-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html