Message ID | 20240821063112.4053157-1-liyuesong@vivo.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 A5679C52D6F for <linux-mm@archiver.kernel.org>; Wed, 21 Aug 2024 06:31:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0533C6B0098; Wed, 21 Aug 2024 02:31:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1E356B0099; Wed, 21 Aug 2024 02:31:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D492B6B009A; Wed, 21 Aug 2024 02:31:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B330A6B0098 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 02:31:36 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 104F74082A for <linux-mm@kvack.org>; Wed, 21 Aug 2024 06:31:35 +0000 (UTC) X-FDA: 82475281392.11.083FC4D Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2059.outbound.protection.outlook.com [40.107.255.59]) by imf18.hostedemail.com (Postfix) with ESMTP id B9DAB1C0017 for <linux-mm@kvack.org>; Wed, 21 Aug 2024 06:31:31 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=N0tMedNO; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=quarantine) header.from=vivo.com; spf=pass (imf18.hostedemail.com: domain of liyuesong@vivo.com designates 40.107.255.59 as permitted sender) smtp.mailfrom=liyuesong@vivo.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724221827; a=rsa-sha256; cv=pass; b=afjocoN0Qm0v3V12DyQPSNm8OquEumTy7cIAdLd1Mq4eZ4iPl34g/4NuSSjAQje0IQ/iF8 49Lkd8vM0W0z6IaVGaf6n0iaNsaK84kB9f1d8rYvQ0nqOK0KGqN46Dwh64P2mxp6W6lrg+ FymVSkQUukByh08tXQ5GYIN0xLJtqc0= ARC-Authentication-Results: i=2; imf18.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=N0tMedNO; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=quarantine) header.from=vivo.com; spf=pass (imf18.hostedemail.com: domain of liyuesong@vivo.com designates 40.107.255.59 as permitted sender) smtp.mailfrom=liyuesong@vivo.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724221827; 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=wGPtZ5KHbaI10cXw35+KH7JHE9/GgkJqiSKmSqZngB8=; b=XHxmLmm2YOU3rr4O7MxQJ1HkNoHYa1rQi6fMBNIBzZ4mWdfLe26lT4Rw0el/KDhPPhbN7j B01MhTuAX5sUzfoXjgo32k6frmXUt+5EaPY5Yb2ZyTbzX0Y1uXmKdTF51zUE3bswOWdHQY YJVjhPwiqJUlIl0GGXT9E7pkhFTXXe4= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TO5SZq3wFDkqkm50li7kS0xw4RBG6zsjHQYnZ/Li50LCPegiHXCifseEjqk6NEgJAFh9/6dGqghOXTpxNPkX4+KVZeUTqPCJa3pvjkioIvVryBVf+jR7bA1z+WhU/uxC5WBS7olCb2V2PlkjpTUVB+U3GupC/F5cjPcNzqdXYKRBcppbaEC/nC465srujEXG0YUUzI7C74RvmrOZ943ATy2BhwQLTlQsZBbLXSWOfh4y6ayN770mgSqpK6PGDOyYGq0F7I7bd9cKPrk4/6aaVR8Nr9d5xdFAwh5rj2bnwh5c3B7oDX/Wx/jdxpv7k2a2i8DAK1IgCmMYW0HUJNWyDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wGPtZ5KHbaI10cXw35+KH7JHE9/GgkJqiSKmSqZngB8=; b=si99n7+fPi0WnIXEatJvuWMKyVzlaP6v1A5J3kfeTq5igeIKRigHoWvkdRw5TWzZODoghr3n+XtAuSZ2Gxgdpfm8vY0kqpD31XmTLQAgXWpZHiwedtJHyxaSacj0OpJVPxYTh7EVn+GwYCMttvthHCEAKte3RE8R0B/JNYs2b3rSIjj7uFdx0uno+9vMEuLi/nM2rr8FRwcp0jT2uHxxK7lvWJcd6QqR6hJw5YIk8V9uk0qlTq40rxegOpV697Y8S614jXwwNaRz6XsruvSU0/UiQm8fcJ+7MreXsnpSm7rNjV3Yb2ATRcVOXPEZfPlbjROTcECJlBMI2ah4mBAihw== 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=wGPtZ5KHbaI10cXw35+KH7JHE9/GgkJqiSKmSqZngB8=; b=N0tMedNOSXt6CAb4OOU7q1KZLI+jeTzX6m8JQ/Yip/xh0EJDY37kmQN78t2sxM6GK2aa+OSTBCs5ZJwDqxTUyCxASoVOFDO+LA3C0VXyixA/GmO0g2VFqbCxzin4fPlsevWeNW6enHEsuygzO1JJ4InFm06gopB5QaTJuit1e+gVIR4Vw/nR2c4JcpS862G05kZ6Jk/OdElvrJdFeremTp5t6yE4AvWyre2bY7cM8rHQA1F1sb0PZHxQGI1nfmkEOmcU5g7eBAJL1YBHCW9lCVqLDIJIcHYQJhNxGVJ/qQnd6oCWkFYKSZ6eQy7Mjq0OVjJdCoDvNha2untPJx8wpw== Received: from TYZPR06MB5709.apcprd06.prod.outlook.com (2603:1096:400:283::14) by KL1PR06MB6520.apcprd06.prod.outlook.com (2603:1096:820:fd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.22; Wed, 21 Aug 2024 06:31:24 +0000 Received: from TYZPR06MB5709.apcprd06.prod.outlook.com ([fe80::bc46:cc92:c2b6:cd1a]) by TYZPR06MB5709.apcprd06.prod.outlook.com ([fe80::bc46:cc92:c2b6:cd1a%7]) with mapi id 15.20.7849.021; Wed, 21 Aug 2024 06:31:24 +0000 From: Yuesong Li <liyuesong@vivo.com> To: akpm@linux-foundation.org, willy@infradead.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Yuesong Li <liyuesong@vivo.com> Subject: [PATCH v1] mm:page-writeback:use folio_next_index() helper in writeback_iter() Date: Wed, 21 Aug 2024 14:31:12 +0800 Message-Id: <20240821063112.4053157-1-liyuesong@vivo.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0233.apcprd06.prod.outlook.com (2603:1096:4:ac::17) To TYZPR06MB5709.apcprd06.prod.outlook.com (2603:1096:400:283::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB5709:EE_|KL1PR06MB6520:EE_ X-MS-Office365-Filtering-Correlation-Id: cb3e7855-b544-4d13-0bdc-08dcc1aae0f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: DXr7+SQTxa+N3Q3viKUp44dHaZ8IpDQAXjWw9Dw/j1VrRH6texa1murNNQKxptfBvOUABgj6WChtC+eIoEBdCetszAiZkru93j7msHCmUAMWxeViWANAPf6zZCNhX4wySgDwymGP1EswrsocsqsCLIYCqO+frH/SYjK2ewyYuAP9XSZVCEIfujYrBM+5iA/HIwX4zyvhAMPVHr7H/s5YPR+f/rzfDT1YeJdcz0JDPaokiNKeUMqZyei/JTFnDiWQ+FYDCBiqTNH5iEiRqlsVTDWLZmhTJNlXHqD70ady6YZI1/v9zaE8gjcksxoA1VwAbz9tNiIrletJu6GdwNKUONYb9RqzPSNYTsU9alMfEjVCg45d0cthl+uxAirBWW5aJCc3Khv6ZEkGL+1vskpRosc97AFLVQvp1yniUpU+/fg2SJvB/5VSeHvqOF0D5+h2mcvo70waxIdwTLBupTcqf586H62GEDa62fl31as6OFkjkdz9vpGkllv0DxzkA+5NurEqwF+egUlpk+ZrJUjeYFRgsijzK5LJvebanoddOJ6pKe3RlFtGpJRHxaAjEyj3K2J9W9b4NVC/aN2tYYyusSeSZmj5t67m1KUNfcvuHqz2HZZoZKU77SG2IjG365Q3/6z/rCic+3OhLJAHTg+f6QAs24Isc2wFLKySPHtNA03jEPKFr0h4RbCn/eoCXghMZQtOJZLLNinBshDD5ECsQC5rru7+mflt3Gp52vcuXJK0gn1+C2p1HTCvq3GR/nqca+4sN8jgyia8zUD/lSlbgIkMn7bJbCcs0MTLTYzP2+AJQUjvTJN1L2vFRrozDbOMqX2l2f2iaP/okeCjK3MGNvW64pGZ+bU5qwC2cLaHqAua5QICu/bEXWs0ToH81jdPQLnMc6CqsvVAX7BGPGzp33fYq3likfFb4+0wxGmX6Ax56EKEteWKSpvu18TNEXve/ojV+QblgjYZ6H1LGcQsnSxU+VsG8zJ0UhbTwN/xp0v1GKgeO87ugMrIoQeiLQPaDeD3gYoh9Ozv+RP4L3wMYhIR+ac+MiTMyq5K75y8YTcL0YsE0HB6M6wqgkj2vThwe2iCQgvIZzLjPZlyyq9al4deZNYokI/mi9+1xUSeALAYbQa3LP9Pq2ykYJ4yBwLp/+9RZUzDbzD9t/wbUWZuhuUcwwFHLN3rlywJuur6dWTVAcjGLVD3fSCKCU+aXj6sYZO+qNRY4UuGl/oX9qynRmkgy5K1QEH/vtPz+u923KlYrA9fE0MS1hph+l0y2BN1K7ksIbQJP0c4Bd8j/09mrSMV4N7kPLFnNTIr23fH1mgBxcvipXjDbr7cO9QGyMusZL+D2jVX0SGcxaX8SabwVRB1QllKX+pB9dNMkc8homeHB9MUApwiRdoV2idzE4Hy3RW3grggX60yyMCRlKTLfw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB5709.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 025YgeqA4K3IhqXPiPPCTWstlhiqwnhgRMvgkm+MH2oGqd73P/x4iJUI3t/EEjeMT+5Vr0NVg3vQEOzN9d3k2ent1l+BomkyMMSyR6Ff12q0CC7BBtA6DXzGra5KfLOIU2lImlxmlLsBsYYM/wHyrTGZpsvBX6Qq69fmYQ9GX+0xBbZES1TuNb8q1Thfw8rwsDUP+6CbdSGTW2pKyLn5CPjQKkVxN0Ai94oMtqZ8ipCvaPBh527WvFy9k/i9DQXPK/RWoJpAH71sJyKMjhQddj8yIHihXAldHmncuvT0hon+bXTA0qmXOsOLKdrx0tZ6J3ZdW7jGMtQFyp1M362bUXS+M6t8QqTMuGh+s7i4UKmnGJ+enGIP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yfCzF8KiX932oXokThh51PBFoZa8Jwdkj2o+lCvLvkIschkXLwU/u4OG8TAftsimCmCL/gnGEpDEjfscwcp7g5yxvvn8OvL+1/bBh8RVxmrBvjFX0BohHAV/gqcuWmSx6MYkZRSZFqQf9DL7ZtrTZfFwR X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb3e7855-b544-4d13-0bdc-08dcc1aae0f5 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB5709.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 06:31:24.4453 (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: jvb3L+KwD8KlRf5gLLrXi29rnNX8A5TBeRU5EdEVU6HGVY7KxSeq0ZWthJjoaqV0gHsWiF6GDd2MJVTPGXviFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6520 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: B9DAB1C0017 X-Stat-Signature: 86dqg1q3q45zryrrq38i4zksfpdi8kfx X-Rspam-User: X-HE-Tag: 1724221891-981576 X-HE-Meta: U2FsdGVkX197dNb4f4zlK50wnQZYKUCOllhUrId0kh5XdG6bwA4XQ6uqROh9kL+zOAxDLgMyvqI6A7VV+2TBAGMlOyt5XVJsRMpFfLRAdloXgkirczjGifGjOy9F30iaA0bKVqXNZx0KzWXogXsyQsfQEdauB6dMHpzaXpKu6co3OoQgcmpiqf07wxCf//1DK0jWl4lV/u39CtZtWWnIvYUgSP8cipBH2RR69AYONbaiZR+onuq8N6YUOYXxB4Pl+v/ng32GQ4NXGHQSGJJlMd/Bnh5nz1SVD1d+7YG/WlFl7n6jOMrC/wBxzSjwKk2JuGAD1+0fOoR8x7o0k4Snyh+osMqAW1uzeO2PGiBmNCrl2mdCUgDIZeukqts3OQpM9kJnIJxlhIvaTus9tG9Q4Sm4iLcFJEHo17P+4tVxf5o9gksZola3vEaxHbdkN1zA34iojFSNz0faJIgOMgYCYBRHmAVDX25c1XklNn4hF4PTxjcyXZVOgbabWA26VRW90Vkp5x11K4InnC8mi48LM7SWUPgVCAkPZQlk/FSjmyaDkRCWqAVqUFBx1zceSurQ/tXW7hgB4izQRjf8PS1ct5FlbDrF1q5P0It9KCFPaBknWAWNZbVRTRNZUVuYt/79aoZcqyi2fqah42oIsHuqle2gR5bXaSSvEVsr8qnJvatIjOmydrGkLt299CgRdb7a5akXi6dmaa8m72+bDfYWHWrQWRsUf6QscRytyRrFGjn4PltrXCzfqkjN3q2l6skET8whUUvrrU0bSwQx++I3F8gihP2/76F0LBLslZnQynBDARO5FJChAm5wg7cJ/6qwdCFqWHEEAfObOSTQldtvlIktSaJY8kml2hQuyZ8rb2X36Kari9TOLzWiFxME88NNjcmHOHmdPbjRCLSbIrNLHlha3BWyPMhnNxA6daLmBExgFqTa6fUFmgYolXHSvDnZIqxzklcrR+78CpPHysf rBndWDis faP+izsoGE1AtN8meJ3oHWRKeZ94gDgDB8ly9JO6xapSrgqMi51agGE40+MLHc7wWewYFZIPRcSA8jLYeyquzgaNSzeB1qshS3HpaMrIaYfTGIv25cta7ibrMIZ3CCKmRsYquuoWDpB5zRG5YbL0Ion+j2HB0AXBKev0KjM8br4MI8GNBy3cbkzvMuIQ8NgbaLd0JLUzaJ+HxAJo9Dbvxq0gzrzCYzVBv3SD3iGEm5HjLJa1jPf88++Y4SDQR+w2LeGdfdySqhP3VeGgOZ3VgBycEJj/aVrKOpJmhFebQluYCF8YmdmBBt8ipeh9c/SeAlJrQvaoUPgelrwyCRW7fqcOK3LjZT4GOZQoJ X-Bogosity: Ham, tests=bogofilter, spamicity=0.094236, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[v1] mm:page-writeback:use folio_next_index() helper in writeback_iter()
|
expand
|
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 7a04cb1918fd..fcd4c1439cb9 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -2612,7 +2612,7 @@ struct folio *writeback_iter(struct address_space *mapping, done: if (wbc->range_cyclic) - mapping->writeback_index = folio->index + folio_nr_pages(folio); + mapping->writeback_index = folio_next_index(folio); folio_batch_release(&wbc->fbatch); return NULL; }
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index(). Signed-off-by: Yuesong Li <liyuesong@vivo.com> --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)