From patchwork Thu Oct 19 13:14:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhiguojiang X-Patchwork-Id: 13429160 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 AA1E0CDB483 for ; Thu, 19 Oct 2023 13:15:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E091E8D019E; Thu, 19 Oct 2023 09:15:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DB96B8D0019; Thu, 19 Oct 2023 09:15:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C81038D019E; Thu, 19 Oct 2023 09:15:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B99178D0019 for ; Thu, 19 Oct 2023 09:15:08 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 864BCB5920 for ; Thu, 19 Oct 2023 13:15:08 +0000 (UTC) X-FDA: 81362256696.05.659452F Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2099.outbound.protection.outlook.com [40.107.255.99]) by imf27.hostedemail.com (Postfix) with ESMTP id 3600C4003A for ; Thu, 19 Oct 2023 13:15:03 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=oLzXKw57; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf27.hostedemail.com: domain of justinjiang@vivo.com designates 40.107.255.99 as permitted sender) smtp.mailfrom=justinjiang@vivo.com; dmarc=pass (policy=quarantine) header.from=vivo.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697721304; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=PeD7GJRBVPaLEyPUpBRL+qWTsTW6KysVx0ohxWkfuHI=; b=ES8dyhHqqVhrTOniLmV5nAkWyfj8NOO6qUr/EJxbjLWfUznR0yN0H1ICalT+rmr8KZiSl5 K8zAy3UKbhWLW+q1nHBm4924p9iue0eX3q6yAR3R4OsQqOc8i3hA9sm1qVMFhlYX7yJR2N 2slKSVKPlkAJWyVTJN8/1PCcpbG1qxo= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1697721304; a=rsa-sha256; cv=pass; b=rgXL076Pb3D6N7h0nNMzqR5XA4rAyOzB4fn9P7XxKYkgGBdcowhRT/7X0F1c0KUTwfHsEg 4THt1XGibzdwQM3aLO+kY9NRTrvLNsmI1QXp6eV+b57+MLZI/Qj6GWQYBqHl5oefXOUU1g +oe50ytJ0wMTnJigFFT62udhPHjuIlk= ARC-Authentication-Results: i=2; imf27.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=oLzXKw57; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf27.hostedemail.com: domain of justinjiang@vivo.com designates 40.107.255.99 as permitted sender) smtp.mailfrom=justinjiang@vivo.com; dmarc=pass (policy=quarantine) header.from=vivo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UcUZMPUDC8CyVmpCnExZ0ORqj1S7YclA523xmtSTJ9np0KaeQ5FY0OBhLq5QLjkzdIEPWEwH+EUiyMJYi6BXueVj6hS8gi/SER+FI8+fmmd6gsyn21UUVoIt8bkzImUmIQWmZ/IOruLmQRbNF4yNKILpU711NpTgmAZUeqwAAen5JmGFmJo7JTXVX/tUFzXElnXqxYxJSvr2o7/X4ePKtvPMuTXcmk4i5zQDDuOfe4uQE+pbU9Kxp8oveFGCULBXsyJrr8hLlS96m/ksiGg0GeQGVNwj7VO1ewe+u9FJ16wPAZU2LxU9Ov1UI2pibvm7W8WefVlWumR8odW5nLTv/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PeD7GJRBVPaLEyPUpBRL+qWTsTW6KysVx0ohxWkfuHI=; b=SQ18xcG6tqKA0w6LeVOaP05cghtB2NELtUa4SFPxwqIQWholDZ4lPN480TTwgga723HSdPP09L7lzQbUIZG3hJOQlYAm8Kt7sSl5Yd55u75aY7MA9aTjaiglhTRZxXhKLaR1QxJpmSa2Us93vpbMJrVbTsxCy4yh7nOQ+L1a06AYTDrLhqv1GS4pQGjUl8Itn+U4Tz935CELqnTXCn8WgzzyWNuT2CYaEnBLOYayL/nZlm/jjjIfk4opfSX3CqGRfRzM5wfHKM2UBJIj+gfzgvRFwGpTTU2d28D2qPiBEWI1EKnbE05/bKfIRkukB1Y5itMR1U/cDXZw5iXbsp5mEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PeD7GJRBVPaLEyPUpBRL+qWTsTW6KysVx0ohxWkfuHI=; b=oLzXKw574khkqySpgwwrN7z0sMcH5hC9sbm6Z+HYoOBp9+BC4rMPcM4B98dC7rFuCpDYEBTxCGm7U1hcD+miQRud6HFIsHuw89XrDYcRNUjOJsdnuArcnuk0i5a3zgiTrIuW0iBHG7rsg1inqSMcCge0oOJlGxXhWsKJ0wd+dgqn5rMbb64uHs9J459gIEbIKojEiAu7nsY6dliKh3KwvorOdf6v+6t1+k6UzawWCa1UuT3H7PitKdAoS0asGi2hPj16xVTiYtEsrjLWheNdhEw/do6XDH7soHfGjAHy6jqDtcC5U8tdWN6mLf5IRNLGWnf9ndjKToWyzvUCAmFdvQ== Received: from JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) by PSAPR06MB4470.apcprd06.prod.outlook.com (2603:1096:301:86::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Thu, 19 Oct 2023 13:14:59 +0000 Received: from JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::32d4:1209:6b36:86e5]) by JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::32d4:1209:6b36:86e5%7]) with mapi id 15.20.6907.025; Thu, 19 Oct 2023 13:14:59 +0000 From: Zhiguo Jiang To: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Zhiguo Jiang Subject: [PATCH v2 0/2] mm: the dirty folio unmap redundantly Date: Thu, 19 Oct 2023 21:14:44 +0800 Message-ID: <20231019131446.317-1-justinjiang@vivo.com> X-Mailer: git-send-email 2.41.0.windows.3 X-ClientProxiedBy: SG2PR06CA0252.apcprd06.prod.outlook.com (2603:1096:4:ac::36) To JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: JH0PR06MB6849:EE_|PSAPR06MB4470:EE_ X-MS-Office365-Filtering-Correlation-Id: a14950eb-ec36-4cfa-bc25-08dbd0a564b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y0VDagAjZTQz7+ysd3yUZJaifjezvEWDh6TlkdvYcBD6BFd4AfwMhPvR5WBY2htcBVmdWWpzYtiK8Ff2QGbUzlv1SbriXZI1+lMYOXIhYCh/X6SpOogpg0eOp5tf52oGPY77voVq4+lrADWBvXJPlFf6a/cUKpcr2trMgZdnbID8v25vGHZ8ZzNw91ijyAOgRyPDUng7lMkXtlSIMctlZwKsZ6o97ojMFOqn0BEc53yAVT01FWe1iyAJ0PiDg+DjPlNF6t1lj/PxQSFk38tzhWRBeaJJEketBJWDNuE+5yuwNnBgTsmHeoNmO+ZRm54R1on9W0wb9wq9mkiROauoIabGI8MrBoWMi9GJC/xAyDeiYnIyc++9Sq469PLUu4sRwdHOXHNAS3rHHeJJ4OFiLyXteXohfyb7ExniGj8IM9kAGFSs0Be8a9Tv4Oa3OdtRRsbdM4Y2Z1TSvWvD5nz93Kk/VPXaRj1/zGNTMPmJ6RkXtwN0Jf0mh0f66eaqAs9Mj0sXaJSaD4gQKkN63ToaJA47AehaDmVcp1jx8Ke/XMzM4y9uQm5f9wHNfBQaC2kG/B2EJ2yXiTazptp0cloYLcYt61DEhHfiauxfTpDwTAH9h2524lC0e00ofB1OeQGRCpCGuXPB9lKEgc7SDPAzpw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:JH0PR06MB6849.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39850400004)(136003)(366004)(396003)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(6666004)(2906002)(52116002)(6506007)(6486002)(478600001)(41300700001)(4326008)(8676002)(8936002)(5660300002)(66476007)(66556008)(66946007)(316002)(558084003)(83380400001)(36756003)(26005)(38350700005)(1076003)(6512007)(107886003)(38100700002)(2616005)(86362001)(14143004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AtplFugcW04cy9EvZN791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l62bHs2PuUiNAm82Mb1J9Ppf8kPbdcbznIvskKVUX3l7kei3WvzcoIyPjWaiCy0ijGyR6KQtaRcH1km+VP5Ig7wsEf+RSDKlzO3loBkVRpsR2pj8HltIfaTU2/gkaZ2sPuF1FEBOhTDOov0fbX6iDUH5ieWG8BQCNFUv8YWWogtINguqv+4yVdfJY8arHSYNgn2Mxe2FMaRLfFannDv+UCCG5kqv95hpKRpl9r518aDJy9mP74xfXlkTwBQ0W16Ce2g+XI76gLCeR8r6SS6jWu6auJwme3pTf71PRJz76rkuy3yt/T6cI07oh8uTNFpPeJyLS3p66C/VVnYForOcSnaibYMTdIpbe+H3s9rr0PP01T1HpbXExblKtaDtp81U+8YUJ0F0JfqLpuBEBfGtczfteHzzZ456zsaDHbucQAKvYv2svV0rO645Ju7TNb4cI/8p2dMo+cmMw2nXTvH1XaxyE2VQRao0xqjpr6oBQePT0B X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a14950eb-ec36-4cfa-bc25-08dbd0a564b9 X-MS-Exchange-CrossTenant-AuthSource: JH0PR06MB6849.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 13:14:59.0646 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 21swLdqSszPW+VEmkCryLdxqtu/RjlpSF5vCiwo5WIvmSwmL/EcgjXmGYG5rTNdMoY2QoU8O3uojkSeBAx6fSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4470 X-Stat-Signature: op5qc5xm369us4km9z3bwqc5a8jk5y8z X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 3600C4003A X-Rspam-User: X-HE-Tag: 1697721303-931541 X-HE-Meta: U2F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ke4p3FPtqSg0SkhzcUGhViCC8jee2q9EVOQpM4m+zKN6K6mMuYQ67uMvw3OXDEs1b5i7BiftNT1DYVsYUp0GPMzaIDp93eaP4JAQHiQt+ntvk3si6NtqXqTZEzf1pymVY677OBQQSft3AZqHKBCBk90/F82Soa1/aZ6KoLcL/9ekxzXaFeOYE936vNp17143Q8FZTty+WxHw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.088900, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: *** BLURB HERE *** Zhiguo Jiang (2): mm:vmscan: the dirty folio in folio_list skip unmap mm:vmscan: the ref clean dirty folio skip unmap mm/vmscan.c | 106 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 69 insertions(+), 37 deletions(-)