From patchwork Fri Oct 21 15:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 6802 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp769884wrr; Fri, 21 Oct 2022 08:48:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6RdHvZoZd8bFkxuxjjXa+X2dTMWbFNsW5RL6YoSETjD8B/WAwaIm1fwLY7yWnAkkFTV+e2 X-Received: by 2002:a05:6402:1690:b0:45f:d702:9919 with SMTP id a16-20020a056402169000b0045fd7029919mr9474731edv.127.1666367299454; Fri, 21 Oct 2022 08:48:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666367299; cv=pass; d=google.com; s=arc-20160816; b=D/CD5AMA1b+X7PaUibWgKQtkTcsH0/+RpKDum2rbsjjapsIndMnnjB49V7hrOwDFMJ Lh2MCRZHWssUt2aw8z0wHIMWcV9yy/fwR869aUy0SmTqVNdyIibheGdtO5F1HFS5i57A CFgOzPc4riwaeg6tg4gRfc3uXbtF5wp1y51YCjqy0fekfFMP1OBUe4LLgQ5RIW8t8rqk dZ1pEVPK/ByOW6N4TdIvYTLngA5yTSzUn1166DG/4F9tewlAGip1H9Eq2DDUxb9yUAqm c44QxqQi34NeK8/EuejR68DeP0jf6l9g1S+8hR7woJCza5SVyQ45uO6dPf55k96as6Ni pfQQ== 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=TANES268XFejJY/y0bCIe+nDZNdAK9LHXT+mtSy9XHc=; b=S0oTdEbOHTxBmDDKZMnWv9FqnYqHkNhDXeoo28av0mWsFc7hgCKJPwFoSUK7ZPN35f uq3xXy2sC1u37uu8dklrZ0MG3T+vLvhITzsAJXt7oUVgmN8s5oWxS9pQC8wgz2gJ30Ka CwJQPxghrqCGDg6d5hj6l/d3UeoBGHW9lZAC8EiyxOjlG7CzKEZE75e7JC5rnQRnoEz/ vxYMUuJlyFTpu8n7rVOFAkm25hpSS6NXpw6nLyR4NzIxXZX4770OZKUv829KXQewehDo fOUqf9GgAxeBjifqt3E3S8F+8gbcoPkmItUqLHSQ0Zjj2sEISy/U/+5oJ3ARPsgfWUA7 98sQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=oLm811JM; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y39-20020a50bb2a000000b0045caa8bf80bsi17856978ede.307.2022.10.21.08.47.52; Fri, 21 Oct 2022 08:48:19 -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=@vivo.com header.s=selector2 header.b=oLm811JM; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbiJUPmU (ORCPT + 99 others); Fri, 21 Oct 2022 11:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiJUPmB (ORCPT ); Fri, 21 Oct 2022 11:42:01 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2094.outbound.protection.outlook.com [40.107.255.94]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60DEF237F2 for ; Fri, 21 Oct 2022 08:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EABMhMFZHkZR6rQOQkmq+zVRuDcnpHEw6oND+qrF6DiM+nqWLWR9Dnr54Fm3WBsnW+ucFt9RPzQ+4t8+86VcqFrgFJ1lcsxbQaBcYOrHEchKeQRoz6vGdqCOn4PyqCPOCfXUY/hqF5Qr5fM/IQXPUjiHXmL9rV9fVSavqgucnEVsuysWKGFe19Ell5h/ONugsZHFEN3A67jpUA58QcmhcVeqbyGlU/TFMgt27vsNJAjfP5gWknKdcIQJQuHk31cuoyE6VVAHQt07PnEVlc2H+iGDvj1DPf+aQc0OqrEKc8/uIlpV+TvtLKR8pCIJK3w2Bbxhw1LEIAvzPweC74aqSg== 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=TANES268XFejJY/y0bCIe+nDZNdAK9LHXT+mtSy9XHc=; b=ZNJ6GFqPP7LH7pEL4na+v16tHwBIE4YQH8rR6vctXEpZF95aUQrPsvarEY5853Cj2AhA1u4xp4WqW1nqhlLnr6O9kH7sXqr1VzS+t+2q47IsVWF19nI2j84o2xoAXNpKGhUoHrk6xhCq7AToaHeZpBawiE1XaT9hp0gF+FOOaebkyqt3Ei3UFhHw6jvMThPjudkGe2CLqAckDFiftYvZYHOlmq2kFXAU12zx9R1gJu6QBtmCTNUDUXXq9/H1Nr3v1HvRJxdf7C4Ojych+vRfp0YCTjFGhk0Zm7IzhEodfc50aBS9AEb3GHj7d8bYmPbtGNCgQCCllmtCFP/CYOkqyA== 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=TANES268XFejJY/y0bCIe+nDZNdAK9LHXT+mtSy9XHc=; b=oLm811JMV8S+mB5W9Yttq5lqvDqRjOTsin1eJ7cSzks8qs0798j1Nr1AKTuoy4QJa2orchRXkhUtxsBEHY5t7BfbG7fS4DiGM8LJ6CU64GwF8+hPzgzvsQ0fwrSdOlXBHUGRpM9wGHq1SweY8MfAwrtsEx3A67DZg8rIJo5GRzN2ZkHaNDkN5k0J5hxa7iwLkyxwkyl1HZJqiHtthfqCKpvePrDJYBvBtw4L3NioeH4j+SG2uGOhhf0Q+BtMaUgbPO6aLHLMrN12K7LBrvBO635Mi8A+lNekKxfvEcr2c2rtfgyogeN5f0el5WWNa5d8OJYkgf77RqsiXqsuv9bprw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB6035.apcprd06.prod.outlook.com (2603:1096:101:d9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Fri, 21 Oct 2022 15:38:38 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::c84b:5a6c:d66f:c0fd]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::c84b:5a6c:d66f:c0fd%3]) with mapi id 15.20.5723.034; Fri, 21 Oct 2022 15:38:37 +0000 From: Yangtao Li To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH 1/2] f2fs: fix to correct invalid batched_trim_sections node Date: Fri, 21 Oct 2022 23:38:24 +0800 Message-Id: <20221021153825.79614-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SG2PR02CA0006.apcprd02.prod.outlook.com (2603:1096:3:17::18) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6035:EE_ X-MS-Office365-Filtering-Correlation-Id: f0a2a9e5-f5a0-4a47-9c28-08dab37a5261 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qfYtB0Tn8Zbi8JEaSz9+9U06Eq9RMyYgnkGaLddNQQAiLVMqRx/4Oi1QLYhHNoas5fBsFxbefdELlHYZw8+A4HfJahSoYT8HrafAykCUDdwI3078ldrP3vuk0B3bIWTkNzr4EjSb5EAqLVUr6+hX456oY7iKa3Dv8kfi0fX01T3HH9jqxVgN92zXKBXyH+XPAws9nR4dhskqfQcCCWBbfJO0mwNDOUMgNNhC6W3hVTmwXgWsz79tKCw1IOAKGTK7t1WlH97c0DVrkbD58AOSIXO+rO1iazgUB091auo0BkglbOmL+YvX1T0aoFxbY0gTuBGX5sQyg3ImzS6gXkt7aa0tKfsBZQpmEgJIZBWaSv0YWH1k2PBwh84zNlnu0Kn+dFFxji1STtZu0ScomZpFsZazX6a9sBMUfG6PYk4AAXMtwDbFr+ELegeozO4idzUwylfG7ojR2wquNJFaPjvRfA/imOF6dx61R7voD2qEMa39IZFTwqTvp+KBc3quDm5dr6y/CEzkFDtOfDq5vPqAzYbz8hpECW3+OQw+4JHVSwZAekmAS6epcjX/q/mJ6hNFgAP3kNVFdpfPX1Fi92T59t9CTec+y7sXKeLJ22PN8MB2xPpSKvkkQt0jGtIgWygK66H45YxZ4Jd8y5XRKs+fGMd9oiqe42Yr25wrQBMGFwjKOr6kMdshKRPjDCf5QPr43smh8Ed7UP6x2mAzY5CAKH+IH8TG6U20FAFLs5sIelgFkHb0WodXodP6xMfZTjOc X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(376002)(136003)(346002)(39860400002)(396003)(451199015)(26005)(2906002)(6512007)(8936002)(6506007)(1076003)(36756003)(38350700002)(2616005)(83380400001)(38100700002)(5660300002)(41300700001)(4744005)(186003)(478600001)(6486002)(316002)(6666004)(107886003)(52116002)(66946007)(66556008)(66476007)(8676002)(86362001)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uvgFy39emjfTfBdWl2/zMQfNl+6czCE5KaZQt6ClXgxFqI3plAbZx8NTGfCRxM8aJPUb2hbomBD7SguE2l+I3jsaK56CdnYu75YKTgLwnHhcwHxgK7VBlG1pG5I81o72vdaIRwnNkVVkXgBfzI7bVLQq20OKj+YudoHxyrn30lmW9FRYE1OLAaFuZ5fSx0DG6QnpwL8bixwfAiJ0B3CG/b4HJ70GOeIf0YjG1TVWP0rsdO9u5g5LRua8sXOh0a7uqEBrPQdx9arzqPGpJ0P4SFsxLUBD37AZ8YPmW8DZCZV/cS9x41fb74NDpyfgcFZCzPUV9dTdAa3uxiEcCmmflqZQ5/3vhy/CVir+fPjYQFrLwXpvjMnPHEGLwIW1+BEaP/qMLoBvtf3KR15x+MrupRFsU6eoFa/EWMbrlIAHcYkt8e2+sUyPEvy8tGlRZe00k9itvGQ9rEIfqT7o5YrKU5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NpvrDm1AluvEMqqVwXfVtJgRFhjd9vKGZJyli8wC+Aset3axL1sGq8sjn X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0a2a9e5-f5a0-4a47-9c28-08dab37a5261 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2022 15:38:37.8044 (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: qTnU1CJYgZofI96wr8f/kNEFopR6Ohzq00o/vczymL5OIBVCtLYfZLqDjB3vDNFN57PCcN8GXQFg+MAN/91onA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6035 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747312757057027051?= X-GMAIL-MSGID: =?utf-8?q?1747312757057027051?= commit 377224c47118("f2fs: don't split checkpoint in fstrim") obsolete batch mode and related sysfs entry, but use wrong name. Let's fix it to right name. Signed-off-by: Yangtao Li --- fs/f2fs/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index df27afd71ef4..3005e2783a25 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -488,7 +488,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a, return -EINVAL; } - if (!strcmp(a->attr.name, "trim_sections")) + if (!strcmp(a->attr.name, "batched_trim_sections")) return -EINVAL; if (!strcmp(a->attr.name, "gc_urgent")) { From patchwork Fri Oct 21 15:38:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 6803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp771276wrr; Fri, 21 Oct 2022 08:51:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QU2QoSD89g2GD9k8myTjD3Hxigh5zfuntgMiUbmLmZZlnbe3QImxVydq2sp4i4aYyd34U X-Received: by 2002:a62:cfc2:0:b0:565:cbcd:b0a3 with SMTP id b185-20020a62cfc2000000b00565cbcdb0a3mr19653907pfg.73.1666367493069; Fri, 21 Oct 2022 08:51:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666367493; cv=pass; d=google.com; s=arc-20160816; b=Kki6CUNOxh6e1wUT8dVKLKR+svU0mclsdShZ9fK/m2wf2o2Tr0DHQtkvuV66vLmWcs elYkXQAuAJH1AFzgUOyiddvZsIIuvVWequ+CxdXsbgjYikZ1V47vNeE1VTO4kghSK7q1 +zyYotHxaKrfcRPQBjjLx6FnwQpdLeGgLrjeqwq2iH3a79ChL4LxNuyIhxWnQji05saU bq+vksg/tsfomLRf0c695j3ZXi0YYZj2r4e/wYl0yQdUF9N+e3GmU/z8ty8URy+U5i1R YrpEpWQp4h4l8bp7Ngm/sNATh2qBh7eArbPbgmDK138gjexCNZWjguRYinldydZ5BlqF h+7w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NExT4FRkyZFUrxhZxtNCHOqS0EYUzyU7WXYao/CG5tY=; b=aLpw580cZxKq5A/Ick/3LBKrnrk5IIPovDADg6xNhVQNPuabZ20mHjEIIDYJGRkzK5 cEE0yStMwqhV8qybE8/T3gNvHWko0Lht7sw2A3JWoOCYr1Rc30I01QyQzABwj1jetdf+ RSWLOpn53xb0CrKvRIk/EN+WAFcp7NUkqOLYF6t9BEK+ofCq7axsKDxcoYFFSNdhf+UT YJHhDAlQSQewfsh2+tLRsoGU1PX6G/gr0tMBuEk4yD+pyYRJuO2f1DjdSlBKQXYCeTIf J8Effw4pka2r7BgEPUVST6onv02bQUfemyjsp/9fwg4LiQ0a+wNB233wEzZaGK8RR6iL vJKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=h3bheJ8O; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pv14-20020a17090b3c8e00b0020a774637a6si2140pjb.67.2022.10.21.08.51.19; Fri, 21 Oct 2022 08:51:33 -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=@vivo.com header.s=selector2 header.b=h3bheJ8O; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbiJUPmn (ORCPT + 99 others); Fri, 21 Oct 2022 11:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbiJUPm1 (ORCPT ); Fri, 21 Oct 2022 11:42:27 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39A04D27F for ; Fri, 21 Oct 2022 08:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z0g2mhDDNBq7IzSoulfI3sgMqXs8NXzZCS11KzsY9zKl6fl3wax5N3G0MEA0tmAbDHjp/QqfkXlbdP1ANy4JMUcevYssysiFryZVioOzvaWWL/Scw50BRWG7j9/kqYz2eWDS65m52tjwdauQXq24jPz+ZmDa4saqO92pFCoeSmoQAqhkhCT/+Ub8pMhE7ZN98RDSr+caIpICA1/b/OEn85T9Q6Md+zU3KKCVlfaVwwxtHAGfH9e5OgmkvHT7+3+VScNHp87pZblVei/JLfgt/WOiXVt6+NibXSjP+ZOnVsK8TYJpaOWKj7qA5pBb9ghc0VDmGuwEPxy8B7ejHy4jaQ== 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=NExT4FRkyZFUrxhZxtNCHOqS0EYUzyU7WXYao/CG5tY=; b=Sx5LN7QKB8LcumrEq9dnyBFZ6k0EEXR9ImmQQV9elNT0jh/51sQbaVQjsdK+c7Bb1LQCToB+3gMTw1kbvY3tZKejVBug/XlFkfSBNTxpJumwN5nNOooVSTshv0SHe5s2lliz2zo3tqZn/n5GS4MSAOsRcWBzdSoYdeKLhsrS6BFJ6OFqM7vqUPRmhuGvEiSm7Io/KyEkkSTfDMo6ZdP6wncU1CG8hllWuZoMiRbxP993dRqDpLLZH45873WOI54qTuJgVWqx1aO/4L5WwOMttcHnODz9YX0b/r17BUTOINJMvqxcxozxtfIpDZ53RijchXOxUDDuJGORIalwz+jv6Q== 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=NExT4FRkyZFUrxhZxtNCHOqS0EYUzyU7WXYao/CG5tY=; b=h3bheJ8O46av3eTi09NvVm6kW5YS8qnHMhnC0N1B5CDWuw3k0sBw517savtmKD9ITVwueWnFqrKL2a8ltqS1mYG/6Tua/EGrSPmdASkQ9hWxYY4A/PPx5lwtKe+c53slCOtzma957ja+tv5mHLMwULFoPH5/3vQCKazoNdTDcyMD9zBetyos6D1UA+j1KR4l77y3d3TeGzwTA/vygSUG48fsv2XwYW9vUEqHHA6FidXjKcLHS2coPWcdTMN3ohHSldbCfzU846zf+HS41eMgYPmq7o/AT9OK4K8UG7aKJfE//35ZGi9ejUH6Kvio0QPNfAhYVI/MF1yarEyVRzbh0w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB6035.apcprd06.prod.outlook.com (2603:1096:101:d9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Fri, 21 Oct 2022 15:38:39 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::c84b:5a6c:d66f:c0fd]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::c84b:5a6c:d66f:c0fd%3]) with mapi id 15.20.5723.034; Fri, 21 Oct 2022 15:38:39 +0000 From: Yangtao Li To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH 2/2] f2fs: remove batched_trim_sections node Date: Fri, 21 Oct 2022 23:38:25 +0800 Message-Id: <20221021153825.79614-2-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221021153825.79614-1-frank.li@vivo.com> References: <20221021153825.79614-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0006.apcprd02.prod.outlook.com (2603:1096:3:17::18) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6035:EE_ X-MS-Office365-Filtering-Correlation-Id: be9bda02-b75a-4d61-82f2-08dab37a53af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8XVLlaKityQdEo5PXLw7W8/KYJIP3id1F+MeCCh6mS0HbwKh+ONCBJ4v1Tmfwgy3mDm1ZpH071ZfsAsNlZh2C0t2M+BopGJQPycQlVFxAhCFyJTp4R6NT6IS10P17F75Jy5phomEG/+3dVkzTIUoAX+i5TnIxLD0CE+XH8oQNH6juR5omLN/y2+70oiee2WNO9rUDb/kthTBPIjHu49zB/0068IYIHyih1I36q0N/x/mCy4bQiAtiX88bQfpJsbXKUElknwqBhzAcaC+hiYP+AdvN8k/lA5bSfsJPMKw6mDrSxHhqm+OZz6NofmrJwWrDJnpTNu+ONors0XZrJyg++WFnAlUpXH/BGRl2cnuX3UIbdYOe3a2do+JXpZJPKeUwvPAGOL08exB9DAQ46W7tqu3eaM3a6vDJHJ9zFXCfbHNCSwlw81O2ukqP0rKQN8qhR/poKbxdFfrXyLV6twOLXapyb+e/ctvVRGK55QYcdXsGR3mFYSNv7uKr+xOOBw8lx7yUuHHh9dUGyCmMpTNU+sZYXPxygZEDQIErlfqo5U+grIlY0b7Ht8ofAFLQYVOng69+nVO9ioNrHCfd2s+9fMoBwSXPI6Jk65jaY3V0DguWOd6m5bPAII79Q2nnOJgVWPVsSZAGN1xjDFF1/73D5DZTzjc2EzvOX1FV6ckHGf+Dhqb7Se6epdTo8wAm9nklrEGG5tkaJSvkZTGQoLsWIKYAWP8fdV8dDuaxj7yE5E9kDG7Mj/Sj5CwHTtsdbPmeAV7HhIx20VFDtd89wfPMA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(376002)(136003)(346002)(39860400002)(396003)(451199015)(26005)(2906002)(6512007)(8936002)(6506007)(1076003)(36756003)(38350700002)(2616005)(83380400001)(38100700002)(5660300002)(41300700001)(186003)(478600001)(6486002)(316002)(6666004)(107886003)(52116002)(66946007)(66556008)(66476007)(8676002)(86362001)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gqCjYoy/zu8y1U7AgYXMHJNt67nZnudb4RpAPKf4UHJVHE+2AbPNwVOKVPULwhDhhMta2JyfFrdcclNgS+Rgys9gV/MZBDh5cKw7lqUOjiUpwRs3wMDWUMYcXouQgzk3FtOujriDn8uZBwO6Rc3y5gdFnuD8+/wraw+FfvPgTR31QAIDtkvMUKKQ8ZKnzJnr++DOZ539mjLg2WBdXHIB2JuGERf5iL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Jom2tQg+def8joh0oS15WL6A2xMlgEEEfdTyXc+kJrNyv9Q7vp9Lu7+GdZxunDVMrZxM48lgyxYTzvSgoh5J8HenFZau9qWmIEOLrJ5V3yNyyiLiJqI/QUjVV0lxLpfxJ0N/ioTBaWIwhUkkHRSGTEUkLxjCl1DkAkzItyGjnVZpIV4C56b1ZsOz4qD55ho+Imwxx7QFopbxSrF63XRh3/YaiqIZBzAzradtQBYFjaItGgPW9WSYzf3MfOZN8CYy1o+L4i9wi847ONbyYMZqsSoBEsauNCa X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: be9bda02-b75a-4d61-82f2-08dab37a53af X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2022 15:38:39.8520 (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: snBhESYUWPRWqqHKKLKNQBgLA4pjG98ezrBg+ppQ/O1zftWWRCIoRBrzohu70ekHtI1o0hheegpLt2Gs5cfWqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6035 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747312960413417036?= X-GMAIL-MSGID: =?utf-8?q?1747312960413417036?= This testing sysfs node has been deprecated for a long time, let's remove it. Signed-off-by: Yangtao Li --- fs/f2fs/f2fs.h | 3 --- fs/f2fs/sysfs.c | 5 ----- 2 files changed, 8 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e6355a5683b7..9c480835adab 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1062,9 +1062,6 @@ struct f2fs_sm_info { /* a threshold to reclaim prefree segments */ unsigned int rec_prefree_segments; - /* for batched trimming */ - unsigned int trim_sections; /* # of sections to trim */ - struct list_head sit_entry_set; /* sit entry set list */ unsigned int ipu_policy; /* in-place-update policy */ diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 3005e2783a25..926b7a844362 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -488,9 +488,6 @@ static ssize_t __sbi_store(struct f2fs_attr *a, return -EINVAL; } - if (!strcmp(a->attr.name, "batched_trim_sections")) - return -EINVAL; - if (!strcmp(a->attr.name, "gc_urgent")) { if (t == 0) { sbi->gc_mode = GC_NORMAL; @@ -790,7 +787,6 @@ F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, mid_discard_issue_time, mid_discard_ F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, max_discard_issue_time, max_discard_issue_time); F2FS_RW_ATTR(DCC_INFO, discard_cmd_control, discard_granularity, discard_granularity); F2FS_RW_ATTR(RESERVED_BLOCKS, f2fs_sb_info, reserved_blocks, reserved_blocks); -F2FS_RW_ATTR(SM_INFO, f2fs_sm_info, batched_trim_sections, trim_sections); F2FS_RW_ATTR(SM_INFO, f2fs_sm_info, ipu_policy, ipu_policy); F2FS_RW_ATTR(SM_INFO, f2fs_sm_info, min_ipu_util, min_ipu_util); F2FS_RW_ATTR(SM_INFO, f2fs_sm_info, min_fsync_blocks, min_fsync_blocks); @@ -919,7 +915,6 @@ static struct attribute *f2fs_attrs[] = { ATTR_LIST(max_discard_issue_time), ATTR_LIST(discard_granularity), ATTR_LIST(pending_discard), - ATTR_LIST(batched_trim_sections), ATTR_LIST(ipu_policy), ATTR_LIST(min_ipu_util), ATTR_LIST(min_fsync_blocks),