From patchwork Tue Mar 29 13:26:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12794838 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DD8FC433EF for ; Tue, 29 Mar 2022 13:25:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ABBA18D0003; Tue, 29 Mar 2022 09:25:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A67348D0005; Tue, 29 Mar 2022 09:25:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 905DD8D0003; Tue, 29 Mar 2022 09:25:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0224.hostedemail.com [216.40.44.224]) by kanga.kvack.org (Postfix) with ESMTP id 7B8148D0001 for ; Tue, 29 Mar 2022 09:25:49 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 1F8C4A4DAB for ; Tue, 29 Mar 2022 13:25:49 +0000 (UTC) X-FDA: 79297496418.21.B2F9A1C Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf29.hostedemail.com (Postfix) with ESMTP id BA58912000F for ; Tue, 29 Mar 2022 13:25:48 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KSVZs6hckzBrkF; Tue, 29 Mar 2022 21:21:41 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 29 Mar 2022 21:25:44 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH 0/8] A few cleanup and fixup patches for migration Date: Tue, 29 Mar 2022 21:26:11 +0800 Message-ID: <20220329132619.18689-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Stat-Signature: 48rra59hibfexopzk6jshdwi1jpymnmk X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: BA58912000F Authentication-Results: imf29.hostedemail.com; dkim=none; spf=pass (imf29.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-HE-Tag: 1648560348-175565 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi everyone, This series contains a few patches to remove obsolete comment, introduce helper to remove duplicated code and so no. Also we take all base pages of THP into account in rare race condition. More details can be found in the respective changelogs. Thanks! Miaohe Lin (8): mm/vmscan: remove redundant folio_test_swapbacked check when folio is file lru mm/vmscan: remove unneeded can_split_huge_page check mm/vmscan: introduce helper function reclaim_page_list() mm/vmscan: save a bit of stack space in shrink_lruvec mm/vmscan: use helper folio_is_file_lru() mm/vmscan: take all base pages of THP into account when race with speculative reference mm/vmscan: take min_slab_pages into account when try to call shrink_node mm/vmscan: remove obsolete comment in kswapd_run mm/vmscan.c | 68 +++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 36 deletions(-)