Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp388967rwe; Thu, 25 Aug 2022 02:08:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fNgVg3KkMtcIP8glBFy7gx9vRdkKj4o9KhBKUsTiuAphhWPRHS9cofd6NxbcY/CzBsQ6C X-Received: by 2002:a65:46c4:0:b0:41d:e36b:1e59 with SMTP id n4-20020a6546c4000000b0041de36b1e59mr2468656pgr.494.1661418498501; Thu, 25 Aug 2022 02:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661418498; cv=pass; d=google.com; s=arc-20160816; b=mF3roujdnPUsltOVjknVLDFDzeYKurvsEd+Zn8wN4wHQ59zIvMfRMwxm8T4nbLWGlv CTUZ0qe5NcTbvweTEGhaZZ+tTJ3DxDCkHSbr6qJ+3WfGE1xFdFCV8r1WdkTdqu91LnIg 6nR06NoyJ+jv/mqAQJIuJwScKm9tripAWQ4tlcrgHo4NIddlsVn8D6fgBW9ReZYVleCA +a0J65j8NLEteq3vIM7MVxkB/n6Taza9Nl5JIREE6M0sZnBQN0Sx8k55hdiwr5vHWON4 pA/45SFz3pwCZOqoXSv0WJFuVZNoHBsKjimNX8bQdFo6V1RhWS7wTwVIwdDUM7u6PmNu myaQ== 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 :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature; bh=gKChf4hS7U79euBbGNgD3c+25RLaFE2r1Z8olY3eKBQ=; b=NmFg27rvnxef80iT56MRKbGl0/y9hSocgSQHn29ysrdd+2TgXRdDu3kHyTk5Poa640 piBdxV1kbGHe88uuwsu6Mf/SOxasCtey+jSeSvLPDoLDzZ5GouDlKCEtJjJ1mVisxdJ7 jVt0H3GE4FjCuQf7Qd97YKB3nmV/ELMOGqeasRtbFlI9aD6vvEYcjg567/eC+a07i1QE ElghGDP3SC1gILGjpBELIUQR/QGwznoSpAaj8uDujOjmUGLuLBb+8sYqEoSDBQm2EmBw YzB6W07fIhgUhtdGDVpyJceRuqPdn7oOrt5V4kWQM2vDSGusY8BMsMwMN5AEFGEvb/n7 d9CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=PmOp8Jsk; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=h2TGXbIf; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6391c7000000b0041bf780ec7dsi2116798pge.94.2022.08.25.02.08.06; Thu, 25 Aug 2022 02:08:18 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=PmOp8Jsk; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=h2TGXbIf; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237489AbiHYI51 (ORCPT + 99 others); Thu, 25 Aug 2022 04:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236917AbiHYI5K (ORCPT ); Thu, 25 Aug 2022 04:57:10 -0400 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F53A833C; Thu, 25 Aug 2022 01:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1661417814; x=1692953814; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=VVyg3I7PHghheCpl8k3+YDXCSMJ7EmMF6AEsi2N51Ks=; b=PmOp8JskYg8/JgdGAis1FelDE4XbEFepS4UmbGvkUna08sEszB44RnMA D1WjsQdSNP2Lr5xNfBdU7acHvOpnqio+w0uD50Osr0fozO8VJBT43dcl8 13bse2m8ghJezX68SSJJx24BBTLa50nWwX4F8XGSIIaRQo92yv/mS3jpo BHNRs7QIMGqLCcTLxAJ6XUGYS+tlY+N7eSzYQ/0DC+GqeUbhGHv0SQBua srNSkfpW3EVNofUYjyD2cn+ya2at4TeQc6XBu+vAKTPF8uFuqMQULQlGx jt2fYSscfe/vtf3dmib+FIRRtmJhXXi6EX96JQRr9TUlRJog/BtGHICB6 w==; X-IronPort-AV: E=Sophos;i="5.93,262,1654531200"; d="scan'208";a="210130067" Received: from mail-dm6nam12lp2171.outbound.protection.outlook.com (HELO NAM12-DM6-obe.outbound.protection.outlook.com) ([104.47.59.171]) by ob1.hgst.iphmx.com with ESMTP; 25 Aug 2022 16:56:51 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IvI0UIhmx7ggj5BboiccIyhZ3H2AZfq2fn97KimP83LzUtXEyrOOfjSIXyYyl5MQTY3O/JzDyAHBTBms8d8KUxjio7Q6mIOCU6CeywOYkMmm1ShfvB02DmQ/uMlH0JZ01XDTqjieIHyk93KS7W3CO+ZslKXIc1cpq7BK6zKNcykWt4nb/6ZNhRpAp/jDqITN5l1yRtojwUDiJ1YX8L1C93/0plritOb5GL3q6sgvDINATJ6C4TrQyArKm39dXc91X3LG7X1laPYBFhTvKyi9x6CH/4PCP8a1SOcZRsUYmSuDgFOGq3Oe0i//S/AtruH1BO7iMleuVQqrt6iOmB4YHw== 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=gKChf4hS7U79euBbGNgD3c+25RLaFE2r1Z8olY3eKBQ=; b=GcIRXtN6FT3tWg//pulDg6qU1iHXe/CgDr8WelPmR3AT0kAAWbu925w0APMwXVDm5W8pMyFdHfjXI3KXm3uWipCv56A58RlJdNiNJkw0G2pvFM4ovUC5FILirAuJ6hHKtkPKGE7ljTB6bjMzWzjx1StqKNA3iS2MMr5nFRLJtF2AcLda/gJgZypN1bYo48h4ro4UYCnS5GV4L8oewVPQyFlDutqC1EaVoszt5jFBl4FB9kxPb2uhtfCfSZ6DKTKbaU4sJbb1VHRuJzrZEREQFowxiHv3tOkHRGzIINB5kM4ZD9JoCWFmvmEzvaGjRpg2rb6Yai1Q5QUkFGTo6KN2FA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gKChf4hS7U79euBbGNgD3c+25RLaFE2r1Z8olY3eKBQ=; b=h2TGXbIfGH/OZQZ0/9s/hO/2rZp0sOcpJDKXovEoPaozu0Ebxb9SDsiDnbunlFCgMvc5EKMReIVIm91fs3x0vchVhO0eBLptz7YVSkFWyahKDXlJD0tPMIci1I9Uv59P+joUv/4xOYpndU5E4jTaKXuEfzLyXnF2uo7MmdP/MGk= Received: from DM6PR04MB6575.namprd04.prod.outlook.com (2603:10b6:5:1b7::7) by SA0PR04MB7452.namprd04.prod.outlook.com (2603:10b6:806:e2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.18; Thu, 25 Aug 2022 08:56:50 +0000 Received: from DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::eca7:e175:b67:5002]) by DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::eca7:e175:b67:5002%4]) with mapi id 15.20.5566.015; Thu, 25 Aug 2022 08:56:50 +0000 From: Avri Altman To: Jiaming Li , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , lijiaming3 Subject: RE: [PATCH] scsi: ufs: ufsfbo: Introduce File Based Optimization feature Thread-Topic: [PATCH] scsi: ufs: ufsfbo: Introduce File Based Optimization feature Thread-Index: AQHYt5Yd7MdiBMU/V0WwXjppS39zs62/UTVA Date: Thu, 25 Aug 2022 08:56:50 +0000 Message-ID: References: <20220824084633.14428-1-lijiamingsofine@gmail.com> In-Reply-To: <20220824084633.14428-1-lijiamingsofine@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wdc.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1161552-ef12-465b-05cb-08da8677bfc5 x-ms-traffictypediagnostic: SA0PR04MB7452:EE_ wdcipoutbound: EOP-TRUE x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UvSBhxX26WTVmBHUlenjghSCTFXKFEKOwL2eqTgY39LhJ/M6gGfDYNY90zCN3SP0WBuFUxtCHU4pcklXi1xZ7HR9mr6Y7xVEXi5AyONJo37/LcMqc0zzsjnEsaOSBKS5DN/6jptZ9Mqlb+vVsqt/VqWdp1k0dInBiLARKteI9KP2njpzj5XWmL2ZFkVfYlyTbSBWhEs5K3BqNbnXk2NSOK9u5wCaAWpzixTlnxtnB+bE9gbFEpVQmnyzhlHM7V/4Tcjhhqbrm7S34qARfCoTtiWkNMQZIDSrrvnCqOw8YPoorXjjmaQTV2ai/xjfDMZ27Q+AbKtpODJ7z/cfDIIJlfh7wdi7se77t9MumQsQUlrhxqy1dcW33LFDwVQIz3RQm1dmDk5kEWoV7GC0UtaACzv7s5Yi7O8cldGV/htXPHjdstQFTK2L2LVE3UU97Hc/BsXiu5O+bgf5aLi+f/75Coy40ZdXUCJqf6Du6FcZAEgJC8JWZeujfk65gd8FLAOnJB9hys/ARqMrA8LZ8uf+nTWMzzfMFenLuxL+dy1cekfDXvs5QwU5HptKmMqkO+DaSlBg6OY0yuxu3rIw0fZ4D3gQBufQwkaeT6AzLDvNQH2UyIRVNFAugglzLDqkr4uT1sAq/LK1BzRfmXJseyqT1o7InCWTpKvIcpbxxUW5narK4qj+OCq+Mc3eh/KOTAtY8ZoCNhSO/kBAICv+hrlt6TAxRS7QccspuQU/MkLSdUBj0myg9YmiKPooV2TXeqQJgy31rWQUu31MTrrYn9+E5A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6575.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(366004)(39860400002)(396003)(376002)(136003)(66446008)(122000001)(82960400001)(86362001)(83380400001)(38100700002)(186003)(38070700005)(110136005)(76116006)(8936002)(33656002)(4326008)(52536014)(66556008)(2906002)(5660300002)(54906003)(66946007)(9686003)(41300700001)(71200400001)(66476007)(26005)(55016003)(8676002)(478600001)(6506007)(316002)(7696005)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Pbbn2YXWxerJh7wu8afuVQHlb0b9M66T7pmj09OeSJ79+2SuBXbXpLKd+cY3?= =?us-ascii?Q?pA2Xwv6hpo5clAoUc9+Vt5AOueUXpeFbeEiq2QyC/T8ML3yk4BniLnwy1NPo?= =?us-ascii?Q?u7cacc9HHXmxp/Yf5MU4r2YMhdfPYQHxbEZEUjwcHXQ7rgNqf/3jOsartZyi?= =?us-ascii?Q?Mtbv1S9gmHe9Zogoj7rg3fYEEIKg1MhNAKtJ/ZntO4n4gpaeb18hewczYjIw?= =?us-ascii?Q?hFMv5lbDq0NX9kScT3p7XBUk8FyQW8JW6JCyDSKiBgD/WFu5nAuuRca/LTsh?= =?us-ascii?Q?XJT8l9pyFomiPLlSbjCHE0NAuR21Oti1ESTHr2yRsiFyc7uJQ1r6S7aUkfeV?= =?us-ascii?Q?xQkj5e2/+3/hFOYlCFo1iZ7SS1iipMcQ7zEJbMAV6f6wMvouRGONRgg8H3kv?= =?us-ascii?Q?NzCkvtMfbK+dan6zZpVB84z+hSYNr1kxQgUMYadyTj8JOweDUUiLgHK2fova?= =?us-ascii?Q?LShvO2+7B7UQwHENoW0IEV4X3tOEfDU3NWVF2KFjb/q5Wu72vE2vmV2ndxte?= =?us-ascii?Q?gXRU1K5yb5mHt0KAYoeAyvJmG3ueVfVEcZ0LxLmbmK8RutThET1e2qdVCL45?= =?us-ascii?Q?xcyQL4ASpfGHFtEyuU+gHfhnWO5y5TUjw0wmuGkqNo9D3yXild26VPTLnRIZ?= =?us-ascii?Q?bQHr0ecBRbtMjrnGSJQaB0R+sdeMbieAdu6A23WAiEBAKvGWPvDrIBXnGPgk?= =?us-ascii?Q?GkH+ZE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; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6575.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1161552-ef12-465b-05cb-08da8677bfc5 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2022 08:56:50.2312 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: X5YMWj4SVmRovOxKgSUkeJENsIqL9tJL/s2+4zhjN431Q2ramD7WR8jW2RAjWxj9rzrjW8OKOIlyMJPsU8SAhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR04MB7452 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org > + > +/* SYSFS DEFINE */ > +#define define_sysfs_ro(_name) __ATTR(_name, 0444, \ > + ufsfbo_sysfs_show_##_name, NULL) > +#define define_sysfs_wo(_name) __ATTR(_name, 0200, \ > + NULL, ufsfbo_sysfs_store_##_name) > +#define define_sysfs_rw(_name) __ATTR(_name, 0644, \ > + ufsfbo_sysfs_show_##_name, \ > + ufsfbo_sysfs_store_##_name) > +static struct ufsfbo_sysfs_entry ufsfbo_sysfs_entries[] =3D { > + define_sysfs_ro(fbo_rec_lrs), > + define_sysfs_ro(fbo_max_lrs), > + define_sysfs_ro(fbo_min_lrs), > + define_sysfs_ro(fbo_max_lrc), > + define_sysfs_ro(fbo_lra), > + define_sysfs_ro(fbo_prog_state), > + define_sysfs_ro(fbo_get_lr_frag_level), > + define_sysfs_ro(fbo_support), > + define_sysfs_ro(fbo_version), > + define_sysfs_wo(fbo_operation_control), > + define_sysfs_wo(fbo_send_lr_list), > + define_sysfs_rw(fbo_exe_threshold), > + define_sysfs_rw(fbo_wholefile_enable), > + /* debug */ > + define_sysfs_rw(debug), > + /* Attribute (RAW) */ > + define_sysfs_rw(block_suspend), > + define_sysfs_rw(auto_hibern8_enable), > + __ATTR_NULL > +}; Lets stick to the _store / _show naming conventions - people rely on that when they are grepping the code. Also, you need to document the ABI. Thanks, Avri