The patch titled Subject: mm-deactivations-shouldnt-bias-the-lru-balance-fix has been added to the -mm tree. Its filename is mm-deactivations-shouldnt-bias-the-lru-balance-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-deactivations-shouldnt-bias-the-lru-balance-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-deactivations-shouldnt-bias-the-lru-balance-fix.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Qian Cai <cai@xxxxxx> Subject: mm-deactivations-shouldnt-bias-the-lru-balance-fix fix set-but-not-used warning Link: http://lkml.kernel.org/r/20200522133335.GA624@Qians-MacBook-Air.local Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/mm/swap.c~mm-deactivations-shouldnt-bias-the-lru-balance-fix +++ a/mm/swap.c @@ -475,7 +475,7 @@ void lru_cache_add_active_or_unevictable static void lru_deactivate_file_fn(struct page *page, struct lruvec *lruvec, void *arg) { - int lru, file; + int lru; bool active; if (!PageLRU(page)) @@ -489,7 +489,6 @@ static void lru_deactivate_file_fn(struc return; active = PageActive(page); - file = page_is_file_lru(page); lru = page_lru_base_type(page); del_page_from_lru_list(page, lruvec, lru + active); _ Patches currently in -mm which might be from cai@xxxxxx are mm-z3fold-silence-kmemleak-false-positives-of-slots.patch mm-slub-fix-stack-overruns-with-slub_stats.patch mm-swap_state-fix-a-data-race-in-swapin_nr_pages.patch mm-memmap_init-iterate-over-memblock-regions-rather-that-check-each-pfn-fix.patch mm-deactivations-shouldnt-bias-the-lru-balance-fix.patch mm-kmemleak-silence-kcsan-splats-in-checksum.patch mm-frontswap-mark-various-intentional-data-races.patch mm-page_io-mark-various-intentional-data-races.patch mm-page_io-mark-various-intentional-data-races-v2.patch mm-swap_state-mark-various-intentional-data-races.patch mm-swapfile-fix-and-annotate-various-data-races.patch mm-swapfile-fix-and-annotate-various-data-races-v2.patch mm-page_counter-fix-various-data-races-at-memsw.patch mm-memcontrol-fix-a-data-race-in-scan-count.patch mm-list_lru-fix-a-data-race-in-list_lru_count_one.patch mm-mempool-fix-a-data-race-in-mempool_free.patch mm-util-annotate-an-data-race-at-vm_committed_as.patch mm-rmap-annotate-a-data-race-at-tlb_flush_batched.patch mm-annotate-a-data-race-in-page_zonenum.patch mm-swap-annotate-data-races-for-lru_rotate_pvecs.patch