The patch titled Subject: mm, pagevec: rename pagevec drained field has been added to the -mm tree. Its filename is mm-pagevec-rename-pagevec-drained-field.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-pagevec-rename-pagevec-drained-field.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-pagevec-rename-pagevec-drained-field.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: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Subject: mm, pagevec: rename pagevec drained field According to Vlastimil Babka, the drained field in pagevec is potentially misleading because it might be interpreted as draining this pagevec instead of the percpu lru pagevecs. Rename the field for clarity. Link: http://lkml.kernel.org/r/20171019093346.ylahzdpzmoriyf4v@xxxxxxxxxxxxxxxxxxx Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Suggested-by: Vlastimil Babka <vbabka@xxxxxxx> Cc: Andi Kleen <ak@xxxxxxxxxxxxxxx> Cc: Dave Chinner <david@xxxxxxxxxxxxx> Cc: Dave Hansen <dave.hansen@xxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/pagevec.h | 4 ++-- mm/swap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN include/linux/pagevec.h~mm-pagevec-rename-pagevec-drained-field include/linux/pagevec.h --- a/include/linux/pagevec.h~mm-pagevec-rename-pagevec-drained-field +++ a/include/linux/pagevec.h @@ -16,7 +16,7 @@ struct address_space; struct pagevec { unsigned long nr; - bool drained; + bool percpu_pvec_drained; struct page *pages[PAGEVEC_SIZE]; }; @@ -52,7 +52,7 @@ static inline unsigned pagevec_lookup_ta static inline void pagevec_init(struct pagevec *pvec) { pvec->nr = 0; - pvec->drained = false; + pvec->percpu_pvec_drained = false; } static inline void pagevec_reinit(struct pagevec *pvec) diff -puN mm/swap.c~mm-pagevec-rename-pagevec-drained-field mm/swap.c --- a/mm/swap.c~mm-pagevec-rename-pagevec-drained-field +++ a/mm/swap.c @@ -833,9 +833,9 @@ EXPORT_SYMBOL(release_pages); */ void __pagevec_release(struct pagevec *pvec) { - if (!pvec->drained) { + if (!pvec->percpu_pvec_drained) { lru_add_drain(); - pvec->drained = true; + pvec->percpu_pvec_drained = true; } release_pages(pvec->pages, pagevec_count(pvec)); pagevec_reinit(pvec); _ Patches currently in -mm which might be from mgorman@xxxxxxxxxxxxxxxxxxx are mm-page_alloc-enable-disable-irqs-once-when-freeing-a-list-of-pages.patch mm-page_alloc-enable-disable-irqs-once-when-freeing-a-list-of-pages-fix.patch mm-truncate-do-not-check-mapping-for-every-page-being-truncated.patch mm-truncate-remove-all-exceptional-entries-from-pagevec-under-one-lock.patch mm-only-drain-per-cpu-pagevecs-once-per-pagevec-usage.patch mm-pagevec-remove-cold-parameter-for-pagevecs.patch mm-remove-cold-parameter-for-release_pages.patch mm-remove-cold-parameter-from-free_hot_cold_page.patch mm-remove-__gfp_cold.patch mm-pagevec-rename-pagevec-drained-field.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