The patch titled Subject: mm, thp: use list_first_entry_or_null() has been removed from the -mm tree. Its filename was mm-thp-use-list_first_entry_or_null.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Geliang Tang <geliangtang@xxxxxxx> Subject: mm, thp: use list_first_entry_or_null() Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang <geliangtang@xxxxxxx> Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/pgtable-generic.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff -puN mm/pgtable-generic.c~mm-thp-use-list_first_entry_or_null mm/pgtable-generic.c --- a/mm/pgtable-generic.c~mm-thp-use-list_first_entry_or_null +++ a/mm/pgtable-generic.c @@ -176,13 +176,10 @@ pgtable_t pgtable_trans_huge_withdraw(st /* FIFO */ pgtable = pmd_huge_pte(mm, pmdp); - if (list_empty(&pgtable->lru)) - pmd_huge_pte(mm, pmdp) = NULL; - else { - pmd_huge_pte(mm, pmdp) = list_entry(pgtable->lru.next, - struct page, lru); + pmd_huge_pte(mm, pmdp) = list_first_entry_or_null(&pgtable->lru, + struct page, lru); + if (pmd_huge_pte(mm, pmdp)) list_del(&pgtable->lru); - } return pgtable; } #endif _ Patches currently in -mm which might be from geliangtang@xxxxxxx are mm-swapfilec-use-list_for_each_entry_safe-in-free_swap_count_continuations.patch mm-move-lru_to_page-to-mm_inlineh.patch mm-zbud-use-list_last_entry-instead-of-list_tail_entry.patch hfs-use-list_for_each_entry-in-hfs_cat_delete.patch kexec-use-list_for_each_entry_safe-in-kimage_free_page_list.patch rapidio-use-kobj_to_dev.patch dma-mapping-use-offset_in_page-macro.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