Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6536569rwd; Mon, 19 Jun 2023 08:35:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7q63HDRRzyfCqDaw0/W442LnfsZINR/mK8qkJVpK0Me1yKe4UNSnVtfiPu+QJ8VoQ0vasV X-Received: by 2002:a05:6a00:2191:b0:667:85e6:4d1 with SMTP id h17-20020a056a00219100b0066785e604d1mr9758748pfi.33.1687188914988; Mon, 19 Jun 2023 08:35:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687188914; cv=pass; d=google.com; s=arc-20160816; b=WjSfvFcRRiLGWmLK0G4qeIEbPBhWYdkf59WS8TANIn9ZyIGwq1P5+KAcjK38L6k6Jx 5qwsTURCbVwFEm1e5g6QBLCTznPr7Uy3LH6VrQaBi5OLSYzfsCNChjpX9x5Ww4GmEYta wCUk9tih6z7ZgFyJbgicWdIpNa3owG9jYmHpwg8WqUDxX+oToOAMru7QqFQpGO9NKDb5 LcgLTd2yK5u+mH6G3Qe+CzH/jSlY7Z6OtmEXsheSpcqkMiOUf6zCsYN0M/pSIqZRNSEl xXIydVp+3CgaNVT9GzS0JdoX8plkCW5WrOr8pCRKA4bR34tJR5Xd6EcPaaLz8pCqjc7q fGdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=ws3001Ha4KWJrKW9/L5KAtU5rvP3PzpR5tIGoWO/So8=; b=x/4P2YQlF0D3gL7eKyRtk1nmIbykphSNDUKzVsuoqplIVBxLZahJ50y7it7nJTPFHF FVrsOneW0RhX97k5/hfN9LEjNGEfeKXBRjZG3Xa/gXhxQ+W5aCEbJ3yp09mBEJf7JxfR k3qdG5i5EYR4P0F1h/oJhddJZf/uO8F4J7hLbc3ygZd786m8xDzd1kJu7M4FBZjyNlVE mHtR7y+XOhJtOOfUi1qef/syezoV8kIRCfBubxlSMxh/t3xW58H3m5nZDeS8y3jCRuxM 2Ic4YMHuICblhyAgoTju6kV8Xr8ifDgmpDKQzgKusCnZrzl/gzUlBs7F2mGP9Slyfmf/ tlWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=GDnUqpn3; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oppo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v186-20020a6389c3000000b0054fe07d2f40si11039115pgd.229.2023.06.19.08.34.54; Mon, 19 Jun 2023 08:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=GDnUqpn3; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oppo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjFSPOO (ORCPT + 99 others); Mon, 19 Jun 2023 11:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjFSPOM (ORCPT ); Mon, 19 Jun 2023 11:14:12 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2059.outbound.protection.outlook.com [40.107.255.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1269B for ; Mon, 19 Jun 2023 08:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TQ1pR/nhzAy2/lYbnyH+yQUAX2yeOS9oHqruf1EVtCKZOzSbp6B7OM7Qvz9SX03Qe6gQhfOc/H4al4aZkaJ3LfqM2NKmOw+qT/gu4p36Ab3D62b5j+CvGeyiVNz9g5Q+a8oXFSK8zIHLv7EO+wEH4QOSL+XeZ82Bss5iU57rZBR4KIN8tGwnoIpHr4bHlzbtMZl9Bd90ZDXfZZEQoqKV+bsGcnPq728Vdddn1iYVTLPeCLpmnmQ97AdmZO/5YdDcl4NsGM31BFhUNyoIxJiM7SRMrVXv/M5akMaT0xSN6b10HiiL/du51zjAHlJhd7j5oAemEVBf93Tdrj54Ks6xew== 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=ws3001Ha4KWJrKW9/L5KAtU5rvP3PzpR5tIGoWO/So8=; b=UnMNN4NgZGrFAsAiXBZrUwtNWZ1inXwLJmxZ5c/m2n2BKIYRyufw1awjWZeexyDYfmEJ0fiCLDS8DI9gBUF8i7xpo8iYGytAYLmyFw86bIP+hAx+2tirABrm4OrC8FUcsY6fhy8zy4prg2c9hKJ2ZUaRjcmDADnurvbZCmsJM4ItFxBGwCHvCFRpLHLSiV3KprWWZmIx9FoPHbbiAhy/I1ItO9xZ0Ln31/jp0CSyyOw59bRKBJuwzwTZkAMjf7GAI86PY20zwNa9Tvq4Mi65ibBi6jayw7DsP+IZF3l74syLaC5sR7TVy+qrU1cNfjOwAA4mnMXTIMPunSu+ZHmBIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ws3001Ha4KWJrKW9/L5KAtU5rvP3PzpR5tIGoWO/So8=; b=GDnUqpn3wwK+lXC/jIs+yTM8Lu8A9Hh+cyp/s5mqVxHuS6lFyH+XprtauRElDSZixT8L8+3Q8J1s/6b5sUNEo+FU5j/kpvOfYxQrCdgGkMs/90PtIhgn2ueqm/b2U2PAce5EQDFUbzn6RIB5rG9Wb1ibQzk4abJBmp3K77kHXBI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oppo.com; Received: from TY2PR02MB4479.apcprd02.prod.outlook.com (2603:1096:404:800e::7) by PUZPR02MB6211.apcprd02.prod.outlook.com (2603:1096:301:f8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.19; Mon, 19 Jun 2023 15:14:08 +0000 Received: from TY2PR02MB4479.apcprd02.prod.outlook.com ([fe80::bc4a:4d7a:4c73:76eb]) by TY2PR02MB4479.apcprd02.prod.outlook.com ([fe80::bc4a:4d7a:4c73:76eb%4]) with mapi id 15.20.6521.020; Mon, 19 Jun 2023 15:14:08 +0000 From: Yunlei He To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yunlei He Subject: [f2fs-dev][PATCH] f2fs: remove unneeded page uptodate check/set Date: Mon, 19 Jun 2023 23:13:53 +0800 Message-Id: <20230619151353.2168306-1-heyunlei@oppo.com> X-Mailer: git-send-email 2.40.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) To TY2PR02MB4479.apcprd02.prod.outlook.com (2603:1096:404:800e::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PR02MB4479:EE_|PUZPR02MB6211:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e2d0eea-f05d-43b5-4f82-08db70d7d413 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HN38jcoy1nnAFZdvNVSrGq+WTwzx3sBm2FHnCSAaSuWz9I8DXHmAuuK6CrVUUDNpjikzXnG1WiYQWsfjlPOsGhP7OaOq0cY9ep6TdWWZc2MnFYtPTRsvpwaScE4kjLU2x/gOu52tyZgiD1h+sSPtxr0q++7B6t2QtguJriE5T+73E/qo1emh67Pjc/WxKs75U0BSpoahgJ1ZfQZX9+XWc54QQPxeS8A535ll8BmorPQ6QPTTuMy5hrVo3g8J9tpkd/AQ9lI5lQMEYZfXkM6RqXHR45Et4Etmz+i6O/XGnuRR/4JQhdfl9BBH9khPvAyeMNUVcIMz3Lg476U8Zpmv27lELKlO1zCI5Mokk0eyNabDmDFCBIfJ1S13PR1TWEXDzVnDpLRER26eDG+lOwcu3fMy40kG5+SMvfaSfn46d7Kc4DOsyaSaUf5b3NIBArHIrrXw7kHwcvODZa1xANywkn8BjXMOX2TjddHfu3FpypaNwHURoSAiNmKFOrwzQp55YwvAYTZt4tYj90Y3bok/PBq4xZxnZ+yqm4oG7nrvApQZwEQClkJ60JTiSL4KO0Ly4EJU7rBRQQe5IoonVfiDUhQSMkAdLtAoN4ZVPmW8D+9SsQQZCSN0PxNo9rYMylhg X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY2PR02MB4479.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(136003)(346002)(396003)(39860400002)(376002)(451199021)(107886003)(2616005)(86362001)(4744005)(2906002)(83380400001)(5660300002)(66476007)(8936002)(186003)(66946007)(8676002)(66556008)(36756003)(26005)(478600001)(38100700002)(41300700001)(4326008)(6512007)(1076003)(6506007)(52116002)(6486002)(38350700002)(6666004)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SAmtBAhMmFkl8jricR2dhFpIo+yXgL1tRxkSn9rNZFXyJqvhATxlV+VzYubf?= =?us-ascii?Q?335vrUWXg4lgr4IhPBPDNbqBUQm54S7utWy2lkzwaYseuY3S5ugnYfkyGxwM?= =?us-ascii?Q?6il3fUFBjsiQ4zqUWzQ61nAPit4LeCXMO7n/yczrrk30CGDbDPkTWFFJlYBm?= =?us-ascii?Q?OSmZicSwYVnG2EzZp0tiSmx3xAMDp5fxevFBOn2jFyBvc/ALXNlSoIckfSBt?= =?us-ascii?Q?m8sGIEwvyYF8ajkk9RzuZOP4aMI3YLwiJBuKlh0F2seflDydyH6fLt5cIlQb?= =?us-ascii?Q?LdaXZ33R8lugc1paMPMbS7jLrigGOulLxaNt10Do79OzLwLe1ZL1iRCTDWfQ?= =?us-ascii?Q?PW4WOaWNeqTbnlbJlYAco6tzPotA+Hx4uzhj+cNP9pp5YIUsr7+l93LRm8G4?= =?us-ascii?Q?040DcWjwQnwifckwM1Gp/VUHMujhAgiAcHpQNz0qSBrhLEq6JTTSDW3mEk6k?= =?us-ascii?Q?3Iat0+R6bGplWsZge/jnxvUdqeSyZ5DttyEswzr6QV2pSohshWNIUOPxsvDu?= =?us-ascii?Q?CH8/OpgyitigQKcB16zSdeURaYqVdKjlO8VP63kdDCXnGAOa1Xt8ezeUnupN?= =?us-ascii?Q?z0HkJWwSMMAS3y7M264XOkwFJievyERN3h77CieRk9cO4xlFY3tZVkGYCSa9?= =?us-ascii?Q?LuqGd2LEU20pA5XFrYcNb6pD8zMU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ELrhaDKytZrI1kxKVdVpmNt+4T42HVW?= X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e2d0eea-f05d-43b5-4f82-08db70d7d413 X-MS-Exchange-CrossTenant-AuthSource: TY2PR02MB4479.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 15:14:08.3625 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /epqYKxDP1dGqyXfj/arKwb/r1luzDDYL+bW4ppZ/v2Hy6a8HO/EJg5xnDZIauTS53AUXmK7Q3w7LpS+RymuTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR02MB6211 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch remove unneeded page uptodate check/set in f2fs_vm_page_mkwrite, which already done in set_page_dirty. Signed-off-by: Yunlei He --- fs/f2fs/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 147ab24ae579..b3e96bceaef2 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -149,8 +149,6 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf) zero_user_segment(page, offset, PAGE_SIZE); } set_page_dirty(page); - if (!PageUptodate(page)) - SetPageUptodate(page); out_sem: f2fs_update_iostat(sbi, inode, APP_MAPPED_IO, F2FS_BLKSIZE); -- 2.40.1