Message ID | 1726123214-208356-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 7974DEE644E for <linux-f2fs-devel@archiver.kernel.org>; Thu, 12 Sep 2024 06:40:46 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <linux-f2fs-devel-bounces@lists.sourceforge.net>) id 1sodVW-0003rA-KL; Thu, 12 Sep 2024 06:40:46 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.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 1sodVV-0003r4-B1 for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Sep 2024 06:40:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject: CC:To:From:Sender:Reply-To:Content-Transfer-Encoding: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=SnDLlyve42VPwqNSoylsCt4eAHbMUffU434qD/ag61c=; b=ZMi5kc9vO5oNU5330e7V8dAe+H +3nbguScEDT+P3kVeVR/0uetf0gHoNdKG0JRLg5MAR/Ojq2L6HGEFdDNiBW5CpphP5xFP1TUyVjwr 2Q8KAGZq1/TMQCQ0U3O/vyHdCkeCIHwOoXiq3GqmO1WggvOHuhABSE8g6xGA6ubmf/S4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender: Reply-To:Content-Transfer-Encoding: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=SnDLlyve42VPwqNSoylsCt4eAHbMUffU434qD/ag61c=; b=I V4x/xFOUuSD1Xf/LOJx91NNvRXkQJ+Fja3Z/3nbxl13ysNWr/iFCJA1FJ0ZOW+rnGNpVWzfihhEQU lJF+G5ITQS77B4rwr1XeLPkwkxm4F++E9w/eF4sRLwn0n4IWG6MvMLsQ2dkm5ivg0sr8mplWchpSQ VyOZ9HlBmmoHth0M=; Received: from mail-sgaapc01on2076.outbound.protection.outlook.com ([40.107.215.76] 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 1sodVU-0006sF-3K for linux-f2fs-devel@lists.sourceforge.net; Thu, 12 Sep 2024 06:40:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KoqN21RUlm3XvL1/TfLf+i3NvouSeJsgWS+FUzVARYFQThkWyTfIGdgNsIvqLxrhp3/zSqUZSsYaQZ88prVoh0QBRpgDMIEAxS/+D/XyrSvBMsY3cmsSKFzqVLydIEeCk3mkOJTKo9VSw1ChigdfDZX1Blw7jVtd1iokahqRzDr7oa72kWd421KYQ1TNNRY0zL4jDUswL2dtf/ZiA1NKml0IVEYbV1XdwnJlss1a/j2wlrThVkFPAOJIy1MgI+IC32gOAeiP+dFXTYeS9DdRxjjJtsq1FfSJhkFwi/NHAJabKThWmLPMDrcteoQsTvpBytgJYwwUCSzewZ3Z/SCLdA== 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=SnDLlyve42VPwqNSoylsCt4eAHbMUffU434qD/ag61c=; b=utOiVt5wD6bVCkg6DAMT+5M8cRY9NLbR9NOzWYGSa5kscc9UnCOjnHsKQb0y6fry3BjEGb0ZRS1ILwcwX5/LUvz/dE79iLRjaDIvlB1/WwXx0FAvCcPJyPewJYn25AT1C6IZjQ0X+kT0hL8oz0dzqwV/1RcnpI0S5KWGf5RkmRXx3IKBFTa3kHaTrb4KGYWLS+r2bOB+bxui7UA3fq+fEu6LnPDtbhK3fsJO8x+jwk+/SF/WJEIRoUDxdD3c0iP8Lo5nzpN27/0QlEFqR3X+d7r+b3Y93t9fOoXUxR0AzD3sifeozQeqLUCwaJCMrItv/ej9W5tO7r9ELBl8w7gYZQ== 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=SnDLlyve42VPwqNSoylsCt4eAHbMUffU434qD/ag61c=; b=PRVOoAkRCfVFdMTSzN8fY1rUCDISQ5priFkQUF5POgDDId7YCqV9OGSpfj/+nw6xgm9Jy5LzVW2K0bkDq8tMB+1NYN6xFahxOtbQuwHzLcfD+/G/UvNDOyJER+s4uqENNDv/uXC5qXGXnR+28Z0uluFGQtnMt4XSnfII/w1Cjig= Received: from SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) by KL1PR02MB7691.apcprd02.prod.outlook.com (2603:1096:820:122::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Thu, 12 Sep 2024 06:40:28 +0000 Received: from HK2PEPF00006FAE.apcprd02.prod.outlook.com (2603:1096:4:b6:cafe::82) by SGAP274CA0016.outlook.office365.com (2603:1096:4:b6::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25 via Frontend Transport; Thu, 12 Sep 2024 06:40:27 +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 HK2PEPF00006FAE.mail.protection.outlook.com (10.167.8.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Thu, 12 Sep 2024 06:40:27 +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; Thu, 12 Sep 2024 14:40:27 +0800 To: <jaegeuk@kernel.org>, <chao@kernel.org> Date: Thu, 12 Sep 2024 14:40:12 +0800 Message-ID: <1726123214-208356-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: HK2PEPF00006FAE:EE_|KL1PR02MB7691:EE_ X-MS-Office365-Filtering-Correlation-Id: a4c7cd6c-2072-4821-6502-08dcd2f5c9fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: BjClQDqCRr+hy8sjTdeFR6x3lAKNOKZDo3/Q0XVj29ScjuPU/EWUw2G+jz+DLTpapMcdAv0/foFASzyyystuHqjlNx4U6g56DwzoA+N13UiJNvqk2t4uhk1g1aglftjvWfTyCoC1TFheFsDEqnNJTnDW8bptWr/Xv1vuMjGW1zjxMRiZnxYfuyqjURVd+YB+oFzbksN3FB8a6e+X3Vj/xUT60Lx0GxQYWmj05ycsiOHLOuZgSNJHywd91IeoT153T0utTEPayeghm12TFsKGaQ9I/505i2xXdEgAxzzyD4TwPEeWcnuudoWgW7BhkQkmsOKjxNzk4vhWbFgx9q384asxgHcCU2UG4pC3NphcBmOldy/nkB21YHe4IpfJV4z1QosKa5TZhDpgV8bWwG8HiWnsRlSwvJ09SOJuCb9f2FiGk9i9DDHElO8ttGCZnDgwrsQk/wS1wMtzmh7ODSJDbsXQ1fFZrFdmCLmyqBM9GLRe2xKVnb6d+5UekdVV3vq+ovPucnPNPU/Hm0T6W8lThJcTnZnDlh5yqKx9zzA7S6ZzKSK+QZwZJbrE30+p1MyucivGBO8TPyAfHxeFWGiLGD8w0hDGfyKf8goTHJini1wqjzK/LfzB4CRk+KM6XSJguxFDGpQHTkHD/qKmwho1TTUIe4Z5XXBGsAD+0yujdj0vIriqLKAYyNXUZfJYYVpnkEIAJJlByVTjavoe+lv4pZclMmYX7Snbvibr9hunL8NC2+tWbeTooPBlGaja+NiGUr0IyKguDH4UuMBemM3F4fARB/14qTw2WQxBLXhRMuWhkguNaLDbFWcT8jI2Wuq03Isu1RFi7l3jTuuOD5T8r6hut3VR8HIgNJ4Xm6L+AoOPupKH5Bvk1f9mtudkK/xUZuLP110ry+pw+/E25CH8n6kXJTsAyAhTfPLERt996GRCZ7HkCnOrJ4uWKUCA1EM/SVMZmDDi1nzEpsb77u4UkVZhYbkl8pXng41EWb+bM/1v9sTYoXS8WAV9jSFmz0FAlpdifjM+pO2lTBjppWlrEhq6/6c3+zZjs2lRz6xI9xX/oM7iIJNpLHIdqrx/rlZMkf/JWYhhgEx62xtiHvFshC9L3fam9Dg3lJuuGLBLj3mLPmfkX7UHbW10Yfh8o2xZL9qyXflHC54VzyY/D7j/26NxEkS69KglYwilST8XZau7uJXPnhVW2cj3GKlz+/zc3IeevrBhL6gYj0fnHaxOqI0pX1zkkvJsLoxGwKxgj1jfAnW5G7DvZ4EwUOoJ8jXKmVNTrGszSMr936mP2+7TURO96y639RfUXWJbbRNR90fvG4vcmhmKJJqeu5DdpuGMeSjCuD4Y3ob5baZpjsFeTcIy1oIj4ec+6GQzEHu8SXz/i9I7DwDeAXWR7Gdz7BDghNhgmGHhFghKTi7RJj6jl274lMOtdKKZu4Q7c+gYaj9CFLNFKzZTBDTXBVhaGvZm 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)(36860700013)(376014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 06:40:27.5696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4c7cd6c-2072-4821-6502-08dcd2f5c9fd 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: HK2PEPF00006FAE.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR02MB7691 X-Headers-End: 1sodVU-0006sF-3K Subject: [f2fs-dev] [PATCH v2 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="us-ascii" Content-Transfer-Encoding: 7bit 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. v2: - modify new API:get_section_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 | 44 +++++++++++++++++++++++++++++++++++++------- fs/f2fs/segment.h | 4 ++-- 4 files changed, 47 insertions(+), 27 deletions(-)