Message ID | 20230425165857.29175-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3555624vqo; Tue, 25 Apr 2023 10:17:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZRNHRhOS9r1QnBkLS/gFp2qox+h0LdidjYMp9PgjnBRq6FJokb+n4uYscVrg+kurVpTqWj X-Received: by 2002:a17:902:8307:b0:1a6:d763:3736 with SMTP id bd7-20020a170902830700b001a6d7633736mr17421181plb.58.1682443019971; Tue, 25 Apr 2023 10:16:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682443019; cv=pass; d=google.com; s=arc-20160816; b=aEpdWE431nkUhU4cw9Exxncejsq36gc0Yiml1tzYVH/0Xo/uMPFnvYA27TBukolnVs ZIfGgnHL1TtqZ5n0FS2+eKx6Y5Ja0nvjwdG1PiS+S3G8VsxGSwyxLIvPNg/0OilhFz/c 0bOflVviEesB09tZXgTdMaTKl+FjY6VdCrneqMWFYE2M2URs6KqHiHP9GGxVR6xESQVh AjXPGDjQpaH9eoLtvxXCULW1vrJiQp4xxFTyf0gggJ4uhqHOYkgitKZnZu+y+fEBNKNa 1JqlkMqCQYtxsMZqOQqFw2R5XHUVwUqaS3mWc4xsPypZ22y3SqI9clP0yo03+6cam0Vw IsXA== 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=o1dlDommPAgZHDngDg0qri/MhVV9Spkft5xuTpvHOT0=; b=jy4YsrAAhBBYDIM3Bah0zwKhN6t5CAcXoFxKjDnmKETIU6yrETWrtLBn8YC9wFfy3g QrEEh3KD5s4Z5yGQRBxfB1OeILgk51HzVg2JkfNMzvjXBYKQhm1souhxG3RZZVF44RV3 L8k/jyZCn4EEboU7gpEZoHV+Ua9BmO3H/1GgwhROOg5diLmUZ857kaflK5dloTEIxQ4g iOBC9zw3jkIHLMZzl+LC21JAPdNxN6LhhFu7TLC5M++uZeLlu4QsLFDFAfs/N2aOdjq7 nYSGWt5siNU7g4Zif9jX9vXZ4yTnp2sopIn5V4QZ4Co8+zkyRv6qsFtfILKoIJWsayvQ vV5Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=OEVzQFcD; 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 j1-20020a17090276c100b001a67b3994dcsi13936489plt.331.2023.04.25.10.16.46; Tue, 25 Apr 2023 10:16:59 -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=OEVzQFcD; 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 S234839AbjDYQ71 (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Tue, 25 Apr 2023 12:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbjDYQ7S (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Apr 2023 12:59:18 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2116.outbound.protection.outlook.com [40.107.215.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69342D70 for <linux-kernel@vger.kernel.org>; Tue, 25 Apr 2023 09:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TkPdLTtKlpD/uVesLaygvBhsyq8DPgggIacJJW39x5Fy2TIbV73o347sUdKlZSNK2ez1Q6vHh1usi4bxHaTfc3N6aAqJqvNNepM5HDFURGfyYm7GgkFqN5uYENULOw2d3yV47GxDDZkMMhJ5PMq1E/w0hnCUsZPDuLHuY6OTPs0gW8JTXW11L0eyr8SV4T+OvAH5ta3K0dgtYrB4pcfCmtsokwbwspIkYC+R3XneimRKQnPqoyVx0DeyBPmDoAegY0pni9YpxfNH3wzl/w4gMGs2eV9GkKBMYWRfMEADB0UPHxtFnrmwf2AUdS7hB2u52ssDxnVApIgFr2pkLBcNNA== 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=o1dlDommPAgZHDngDg0qri/MhVV9Spkft5xuTpvHOT0=; b=gODyM5YAcYCuqgDhMMbHOMV3hKfg+4ztki4oH7zARCUfiPUXNT7cf5VjEfJPmrxQ3ElxTpqWTfLFp5oFLttiNi0AAxDTHNrcXgt0DNGXYnlu2lHqs9oLlPc++jfgvbbD1uLL3f2OhS5FTu7EjXJ7rBFoQ3lhYB3lG2UwLi7HUWHV63NuBVJ+s3yrBWQbKHHRj2VQuyfXDtWz3msDbOp1freT56/UjsEK4haBJTNbnafHkdRoZiD4+ylNZ7cTBvje1yD6MRKqnfuA3H5EMzlcRycKAld1doM/zEy3GuGGdKe+ZXmLBBfXGwRTVSYpCi+hzHnKUA3KH9nVzTGp0UIegw== 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=o1dlDommPAgZHDngDg0qri/MhVV9Spkft5xuTpvHOT0=; b=OEVzQFcDaFdOAoKfSmXCzNuFp73FZfdLT/HGUWRlU7DDtXmHhV2HZGVodiPOFCBlt33X6BdOJhbMEdehOjxxMwwL86jOGt2sr368VFFnGn53AN+y8Gb2a6vw7pS0+Y73JRrHyqSviMfgv5/SF/QFyTQGNCT31rvBG3Y/QvP1upIIB2I8psRiibb9PBCFt28LggwzYb1P4qPrsAlmvc/v39fxP966apsPfRzclyWOybB3gaXqWUF7WFDjXfKRcDTgpTmo33EOR1gHUm1/j5NYWoJ8I7/c+iPIW2I5sDtIcjqVAM68ljOWqqaWSSb3VJbcmluYhaQiWBHu+LQqak7poA== 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 PSAPR06MB4470.apcprd06.prod.outlook.com (2603:1096:301:86::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Tue, 25 Apr 2023 16:59:09 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%7]) with mapi id 15.20.6319.033; Tue, 25 Apr 2023 16:59:09 +0000 From: Yangtao Li <frank.li@vivo.com> To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li <frank.li@vivo.com> Subject: [PATCH] f2fs: no need test opt for f2fs_issue_flush Date: Wed, 26 Apr 2023 00:58:57 +0800 Message-Id: <20230425165857.29175-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0024.apcprd02.prod.outlook.com (2603:1096:4:195::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_|PSAPR06MB4470:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d13e919-0f4f-426f-ade3-08db45ae6334 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZBB74o2X3N/gCJDvx2Jw9uigAgKwFXNiFPHZnSxignBkpKiRuOkgwCFGvqInonWOvk+o3aFSIFt5BCcjSq33Wc7nXoWlxI1pveYbEyioPqvaLb9Vimp4VXxK5/I+7Lt+W4GuAofqu+PGMHa16UJ3aQRGK0hQa/WJcM/xvlTz7t/mFUTKcurLxeqpXdVs18QFu5PQf/WADHREN6NzjD400XZhGQNqS3kWfVazREJw2VhPGcTC633RpyBxb1knT9+65SOHc5H5S9gopV7JmT99T5A+Q3eI6CJOX50yK8Gm34vNwU7XWCXAucqSpk9SBNjtmBZwugN7rmVn9J9qrazswhogBVSqtbkBs3k3595TPwoxSGFmAgpnyfISZxyX22Ci4JVlvbMBZfXM1A/zP4srjDIvydO4cQKybRLF+b5xQiQE3cg9WCjxt8jiI/SQBfIde6w0xSiedq8s43g2ARsGtRqqlL6K7505zcrFtH3fe5JweTo+WkP1uuVjZwZqsZobbpyj3fu6+LZCyX73hL4esHvjluG5h/Z8GU4iXcxU2ynvyHIwzFDQbR3q1r8eeBUo+5z6TyHrkLxM7/cGA7k9FYg/fEGkFFzexVfhFT9yrxAA0Pou3YtR01Cg4o+XZPaK 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:(13230028)(4636009)(39860400002)(396003)(136003)(346002)(376002)(366004)(451199021)(83380400001)(66946007)(2906002)(6506007)(6512007)(26005)(52116002)(1076003)(316002)(66556008)(66476007)(6666004)(4326008)(2616005)(8676002)(41300700001)(38350700002)(38100700002)(5660300002)(8936002)(86362001)(478600001)(107886003)(36756003)(186003)(6486002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OqCEyNnsBJPoXJP8vxp7k5zoNZfLoG8ns7Vypn3WxTQDkE9Ewn93gK6tD7DAZGMYHpObLvLxvvsEnzSkkQj6hRRAcHnAJhnn3nVkixgK3vjZVKDd9SB5nJUki8eh34y24C+7gBHPVTN5J4ajaXy3PlnaNiCsGhD6w+SQXV8a/Q8dirwptetaZTM7MsusBgnt1at/eQZl3Kt+DTlF3n/3ROgxIZDDvR8JmJ7dQEi6TjQ43CquP+n3eb6yVy4bWAyPcB4D4UtsYs0zwbcRKQ6E0tqMhx1pgnGRlKIhN7MkruirKTMAxVPsVhCXBdLLPHMK8pxFJ84AVCT1paCgt35aXS2LtmMfNSiDLT3Lkfu3F9e73SArqBRdoSyHUcXxihFf4raLva+aWcyHFkGno4BWEnqtjaBt0vwp8e3gjEB/GDGNewvf6NSiNVzdsMNWLQ9cyCnYbrQqW85CaretYZhNo7AJVdG3OWmbqz3EEl+kvZ1MlNJ+WGMmnwplzvdXa1ZL5sT8qjWz2TfhptPMSpiRQN92QUAKlNu7cyx5RAl3vM5b1Gqcp0ZHl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ant-Network-Message-Id: 1d13e919-0f4f-426f-ade3-08db45ae6334 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 16:59:09.5312 (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: uck7X9rIzM5Hyj3Lfh5TRDDVHMD0QWCU/yJYkLqj+fs8Ex61w2Qxh3Yr/GzQkeXn1UJfK1OQsI0xdXbGNz6RfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4470 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, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764169372424846674?= X-GMAIL-MSGID: =?utf-8?q?1764169372424846674?= |
Series |
f2fs: no need test opt for f2fs_issue_flush
|
|
Commit Message
李扬韬
April 25, 2023, 4:58 p.m. UTC
This information can now be obtained from the mount, and there isi
no need to print it out every time the trace event is triggered.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
fs/f2fs/segment.c | 3 +--
include/trace/events/f2fs.h | 13 +++----------
2 files changed, 4 insertions(+), 12 deletions(-)
Comments
On 2023/4/26 0:58, Yangtao Li wrote: > This information can now be obtained from the mount, and there isi > no need to print it out every time the trace event is triggered. It makes sense. Jaegeuk, is it intentional to print mount option in f2fs_issue_flush tracepoint? Thanks,
On 06/19, Chao Yu wrote: > On 2023/4/26 0:58, Yangtao Li wrote: > > This information can now be obtained from the mount, and there isi > > no need to print it out every time the trace event is triggered. > > It makes sense. > > Jaegeuk, is it intentional to print mount option in f2fs_issue_flush > tracepoint? I don't remember tho, do we have a strong reason to change the tracepoint? > > Thanks,
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 6db410f1bb8c..2683c4dd3bd5 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -519,8 +519,7 @@ static int __submit_flush_wait(struct f2fs_sb_info *sbi, { int ret = blkdev_issue_flush(bdev); - trace_f2fs_issue_flush(bdev, test_opt(sbi, NOBARRIER), - test_opt(sbi, FLUSH_MERGE), ret); + trace_f2fs_issue_flush(bdev, ret); if (!ret) f2fs_update_iostat(sbi, NULL, FS_FLUSH_IO, 0); return ret; diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 99cbc5949e3c..2a94c1d2e012 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -1535,29 +1535,22 @@ TRACE_EVENT(f2fs_issue_reset_zone, TRACE_EVENT(f2fs_issue_flush, - TP_PROTO(struct block_device *dev, unsigned int nobarrier, - unsigned int flush_merge, int ret), + TP_PROTO(struct block_device *dev, int ret), - TP_ARGS(dev, nobarrier, flush_merge, ret), + TP_ARGS(dev, ret), TP_STRUCT__entry( __field(dev_t, dev) - __field(unsigned int, nobarrier) - __field(unsigned int, flush_merge) __field(int, ret) ), TP_fast_assign( __entry->dev = dev->bd_dev; - __entry->nobarrier = nobarrier; - __entry->flush_merge = flush_merge; __entry->ret = ret; ), - TP_printk("dev = (%d,%d), %s %s, ret = %d", + TP_printk("dev = (%d,%d), ret = %d", show_dev(__entry->dev), - __entry->nobarrier ? "skip (nobarrier)" : "issue", - __entry->flush_merge ? " with flush_merge" : "", __entry->ret) );