]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/huge_memory.c
mm/huge_memory: try to free subpage in swapcache when possible
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 4 Jul 2022 13:21:56 +0000 (21:21 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:46 +0000 (17:14 -0700)
commit0b175468a02d9ae8b97919b4de62ab4da578b520
tree19b25baa77e252518a30694d0fcef12a7d439c0b
parent3ce4fee4401206cf5a2c476ec0ee6c90191dfade
mm/huge_memory: try to free subpage in swapcache when possible

Subpages in swapcache won't be freed even if it is the last user of the
page until next time reclaim. It shouldn't hurt indeed, but we could try
to free these pages to save more memory for system.

Link: https://lkml.kernel.org/r/20220704132201.14611-12-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c