From patchwork Mon Jun 19 15:13:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunlei He X-Patchwork-Id: 13284693 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C229EEB64D9 for ; Mon, 19 Jun 2023 15:14:31 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1qBGaK-00029x-SI; Mon, 19 Jun 2023 15:14:28 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qBGaD-00029m-BJ for linux-f2fs-devel@lists.sourceforge.net; Mon, 19 Jun 2023 15:14:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:Content-Transfer-Encoding :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ws3001Ha4KWJrKW9/L5KAtU5rvP3PzpR5tIGoWO/So8=; b=Kie7HiIE33G2m1mrxy57a5mP89 ah/n+dlMi0fmbqSihIqXAglulrq3HtlDrDKb0oDDjIgkYzcoK/cwOzzJwJS1o0eqZoFycx6FBolTP yUZ8aIVej+VOGSW9J07JfF12MEOLfEzVsrwOfn9FFGqcW/xGdnehv6YuS30a9CoQ/iuE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=ws3001Ha4KWJrKW9/L5KAtU5rvP3PzpR5tIGoWO/So8=; b=V xRYP/N4N8Un6Iipf2HltWyl1XmUB8IAeQqWWx5rXNQ1dIduShB4/j/y86TAyZI4BCQbRuyRRdEQgc YRFScmHK6PGDTkZ+bzwfH09nlyU6Dbrckh/O1yILfvxauhsfADvSYHT6pCoAHfAhbQIe2gOdUQ/df sp/TkNPCZt6FGntw=; Received: from mail-psaapc01on2052.outbound.protection.outlook.com ([40.107.255.52] helo=APC01-PSA-obe.outbound.protection.outlook.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1qBGaB-008lhJ-EK for linux-f2fs-devel@lists.sourceforge.net; Mon, 19 Jun 2023 15:14:21 +0000 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 To: jaegeuk@kernel.org, chao@kernel.org 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 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: SAmtBAhMmFkl8jricR2dhFpIo+yXgL1tRxkSn9rNZFXyJqvhATxlV+VzYubf335vrUWXg4lgr4IhPBPDNbqBUQm54S7utWy2lkzwaYseuY3S5ugnYfkyGxwM6il3fUFBjsiQ4zqUWzQ61nAPit4LeCXMO7n/yczrrk30CGDbDPkTWFFJlYBmOSmZicSwYVnG2EzZp0tiSmx3xAMDp5fxevFBOn2jFyBvc/ALXNlSoIckfSBtm8sGIEwvyYF8ajkk9RzuZOP4aMI3YLwiJBuKlh0F2seflDydyH6fLt5cIlQbLdaXZ33R8lugc1paMPMbS7jLrigGOulLxaNt10Do79OzLwLe1ZL1iRCTDWfQPW4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k1c5QDj7pt4WSF0znnXB1lUSl9SETR4bWjAn9Elq8L7NlyscSDgGw6NXlzE36Egrqohi07tskWQGEEQrOrtG3JyZXjvWigOO0o6ZzWSuTYHELrhaDKytZrI1kxKVdVpmNt+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-Headers-End: 1qBGaB-008lhJ-EK Subject: [f2fs-dev] [PATCH] f2fs: remove unneeded page uptodate check/set X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Yunlei He via Linux-f2fs-devel From: Yunlei He Reply-To: Yunlei He Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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 Reviewed-by: Chao Yu --- 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);