Message ID | 1726022421-58677-1-git-send-email-liuderong@oppo.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-f2fs-devel-bounces@lists.sourceforge.net> 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 72E95EE01FF for <linux-f2fs-devel@archiver.kernel.org>; Wed, 11 Sep 2024 02:57:56 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <linux-f2fs-devel-bounces@lists.sourceforge.net>) id 1soDYK-0004f5-2h; Wed, 11 Sep 2024 02:57:56 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <liuderong@oppo.com>) id 1soDYI-0004ez-UB for linux-f2fs-devel@lists.sourceforge.net; Wed, 11 Sep 2024 02:57:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :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=q9oclsWyfE1RckQagOejlQqJpLIxCW1Wl2J22LW9tQA=; b=d+eGJjkcqPIhgtMIqbD9o8ZD0I BJQK5ziWWg8BiulmbvpjW06AoTHKnmwj2iX+OxQUXGYvlBruWHXM9FPwbsIzHNlLStkrB6+M3h57A Sa68flxtb9MPeeTi7Wjjc7mLEI3QBDIXzE8gkfgKZhnef4QrVfU4AJpm1H+itmqfG9/U=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version: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=q9oclsWyfE1RckQagOejlQqJpLIxCW1Wl2J22LW9tQA=; b=X cMbRkM07gXIgoiX236wHrgssCpiPmU0E2qxa15Jk9gSTzVdFl9kdr7GhHh8iGZVakbVwYLFogQHAJ W/lZZdJhD9BYe69jCqBSdxZy4R7k7ruJGW2eVLDcw8sHyFiiLAh9fj7aRTT+JGazn33eND710aEKH CNXvpb9/SSJROH+M=; Received: from mail-sgaapc01on2045.outbound.protection.outlook.com ([40.107.215.45] helo=APC01-SG2-obe.outbound.protection.outlook.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1soDYH-0006mF-Qx for linux-f2fs-devel@lists.sourceforge.net; Wed, 11 Sep 2024 02:57:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JTEiSCvSeGuyknEF1qi4gDkqp6gEBnRa1FcTPOKLXj/xe8+hkIxcFc10BZt0UHg0iVn/rpc/mBH2HCFKPgbNrNfWP4BJJz1ffNH7F/kjhg3IIktptbsuCbi4tDqKJRh/PZwkqvP/K+54G11uUo5A+EORagaI5WIFGDDU5HMaYgR2htfNLhwPdyillbEVozQSDtff4B8BK1+JwiNNAuXZZLLSbqmudobPIKHquAtjV3+phJb1RQg5WBgQyW4JRx14j5EwH+uFF4X6nfWS/pEdmd8hqWoB8yICfCfhw0aF3D+1COZj1GOUf7XbUfb5A+aZC/M9C3EV8dXLkOAVzGs9kA== 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=q9oclsWyfE1RckQagOejlQqJpLIxCW1Wl2J22LW9tQA=; b=nqCtz/ggfMHCVhXyzM0W5hsbD0NokMzjGfYWFYTodC3oqMA8ywxw01awwQOxLE4UVQRf/sxjnw/kYsiIB1DlsDa2yv0WNrTBNhJjw7cEr8DhG9khfNQjh6UhhLnu2ofCoN3i28pug+X5Gcym7o69OO2Ypo9pdebpG6JdI5NZpPyLKB1vjw+J5VTLAugtazid4iumPIRNnJ3drOMAne6eM313C25SvDtG+CzHlRz+lhcdAxpRokkTLRhAANbspcaIyTlL339fsLCh9HUU/pscws+HIFbGz0QT7dOb+5+S5da6SuDqiVbIbTheTjoKyezx4vr0ZIZbapVndWx60KNY5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 58.252.5.68) smtp.rcpttodomain=kernel.org smtp.mailfrom=oppo.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=oppo.com; dkim=none (message not signed); arc=none (0) 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=q9oclsWyfE1RckQagOejlQqJpLIxCW1Wl2J22LW9tQA=; b=Ty0RCFD1AJhWTIVA5PRYZlQCmaB7E1TkiibaBs11x4ds/wkirIXgInwi+7SKekOTdyur7J4RlS1YdKltZCh5jB/Tye8/Qf4kqwrHzum2G0BiiHwG7r9sopwlY7noznHKzDW0lcUg2PvOo2NDhLyUB3MlOgaLOzn8XGN+wIFr8Ac= Received: from PUZP153CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::18) by SEYPR02MB7518.apcprd02.prod.outlook.com (2603:1096:101:1d4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Wed, 11 Sep 2024 02:41:33 +0000 Received: from HK2PEPF00006FB5.apcprd02.prod.outlook.com (2603:1096:301:c2:cafe::8) by PUZP153CA0016.outlook.office365.com (2603:1096:301:c2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.6 via Frontend Transport; Wed, 11 Sep 2024 02:41:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 58.252.5.68) smtp.mailfrom=oppo.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=oppo.com; Received-SPF: Pass (protection.outlook.com: domain of oppo.com designates 58.252.5.68 as permitted sender) receiver=protection.outlook.com; client-ip=58.252.5.68; helo=mail.oppo.com; pr=C Received: from mail.oppo.com (58.252.5.68) by HK2PEPF00006FB5.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Wed, 11 Sep 2024 02:41:32 +0000 Received: from cndgdcavdu0c-218-29.172.16.40.114 (172.16.40.118) by mailappw30.adc.com (172.16.56.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Sep 2024 10:41:16 +0800 To: <jaegeuk@kernel.org>, <chao@kernel.org> Date: Wed, 11 Sep 2024 10:40:19 +0800 Message-ID: <1726022421-58677-1-git-send-email-liuderong@oppo.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [172.16.40.118] X-ClientProxiedBy: mailappw30.adc.com (172.16.56.197) To mailappw30.adc.com (172.16.56.197) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB5:EE_|SEYPR02MB7518:EE_ X-MS-Office365-Filtering-Correlation-Id: eef89567-f0b8-4e14-b92a-08dcd20b3f72 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: QBT8x2oBUUo2omxmVn8559Z4K0/9jUvrQhAwjVXy74AZMO8ilYLDC+/O+k4dar20jvLgjcoVz75awbp/czobNMOsdecTRxKjkQr4wXTqeP7kTZoVWHQy1CezQVwe/TRl60zKr6m0UMKzzPGyYRyb6WdZJbPf7YPhePtxFNcrq0hGoG8SUFT54/8f8SXCLrIpwMQfaU7IdPRL7irz0CI3w+Dk5Q4X0EfXzRek+FJOeoj0+cuhCHs3pec/ZkTz6lb9QDqcebjDdKu2ZSeG4tk/X54RThA/waHIi5wpn9uiVUNfRrIx3lkeJcar/B5yF+hNiIirLTrFGo82yExwOAcqAJcMTJvkQLl76VmscfC0MHfCMmJNs0lHQjikwMDIIi0T3Kyaba4japCEbw6A4pd/e3Iu+li2ZrDca8AW5qcBkW8DJClPNU/b4OWKdDwh3RLNcNaCzn85YZRUm/seH8icqaWOj6IfR6gl0nF/ns1+VGlL2D5quRBr3yTbI0qYT5QfvY8lX39LPXyEQQHL60/1oNsZCQsvdHCRPgMfkaFwy++JbrrJZlETPPya7KsEU/BQgRW6lWmertP9h7E0P2sJk1aRXKcB+3dD0H6ABUB+s9pMPSK7kK/wP2z9Xqr3yyWKIaQorB7G6615ZFdyylfIDSaGM4mUXT3crPoOgZOQSWEefbkGWEXKDAHkj+EUj3GQHjLsr/l3qt9Y5I5+IO5j3UvHkLGKKfBU6E2PRMJpD2pg+GOQiEHAn3Apk6og9vjlcc37Zf9uHp6meOYJJ/FoJ+ycGnXc2eku7bU5dPX/5IlwlW/+O+IgIHCJcGapye0KzY7OUtBdDBmKaLdx56wdAkJ6St7Ga7PNPkCYV5dAaGtfw85QcqevCDfEp8wC7YvOyGgZ98zV2KKBSQUL7zo86hoqjqsE29vszDsjwqOB0KBieJUyYGSpWdMDhNysUz/QOVquJWgMPv5VGdJm5qsS1Zhr2FLaHN5dkRW/YmkGB3Z8Gzjgf2VdcbHzwUWtQQCHOkrwm9JFYPNz4qPd/d/0ueRBWygHDwVdaHwgf/IUy4JzvJhtLyn34aSqUCW6hV5v1CBUZixHXYqM6c/XhljmSSJtoyK3F5dc0euRS2wHd5c5/YhuU5ttaRSRSXw8Gwumzk19fWRQg86GnunFpM9vswsg3QxeLylDpBj3sldKAGWH2YkpsN0Y193kneOsJfEg6TpU1a1HdgpUz8DQQG6Z1OXQ5pgq2J5UjKBp/8f8RYxP8AgJatAfsfZ4xdOLQejbmLxWkfrrTqxBuyU/G6Yrq3ZahdgeEGsIOwos6W8ywfef2B0pdC2RnICIfup11zyLWED0OEtHlnwVbzMqqpAE+qajlPHaPDwdq68uB3M34dYHUXPFG+BJSHG+K1qC8et19RsoTzGNCPtcE0+ej95vrQ4kVkKuFIaxij7jBzeefTjS3+6+A30oYhEyds9ss+/e X-Forefront-Antispam-Report: CIP:58.252.5.68; CTRY:CN; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.oppo.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(376014)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 02:41:32.9005 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eef89567-f0b8-4e14-b92a-08dcd20b3f72 X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f1905eb1-c353-41c5-9516-62b4a54b5ee6; Ip=[58.252.5.68]; Helo=[mail.oppo.com] X-MS-Exchange-CrossTenant-AuthSource: HK2PEPF00006FB5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR02MB7518 X-Headers-End: 1soDYH-0006mF-Qx Subject: [f2fs-dev] [PATCH v1 0/2] f2fs: modify the calculation method of mtime X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-f2fs-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/linux-f2fs-devel>, <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=linux-f2fs-devel> List-Post: <mailto:linux-f2fs-devel@lists.sourceforge.net> List-Help: <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel>, <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=subscribe> From: liuderong--- via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net> Reply-To: liuderong@oppo.com Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net |
Series |
f2fs: modify the calculation method of mtime
|
expand
|
From: liuderong <liuderong@oppo.com> In cost-benefit GC algorithm, mtime will affect the selection of victim segment.For a large section, mtime should be the mean value of valid segments, in order to select correct victim segment, it needs to modify the calculation method of mtime. liuderong (2): f2fs: remove unused parameters f2fs: introduce get_section_mtime fs/f2fs/f2fs.h | 5 +++-- fs/f2fs/gc.c | 21 +++++---------------- fs/f2fs/segment.c | 52 +++++++++++++++++++++++++++++++++++++++++++++------- fs/f2fs/segment.h | 4 ++-- 4 files changed, 55 insertions(+), 27 deletions(-) -- 2.7.4