Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp635164ybx; Wed, 30 Oct 2019 02:33:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6ypHXzXR5eteU0rlKkcZD0pxWjThWcHJGCltcxs2UAkYnXsUdo05j83kl4IRfpE5M1+RX X-Received: by 2002:aa7:db17:: with SMTP id t23mr30530060eds.135.1572427986529; Wed, 30 Oct 2019 02:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572427986; cv=none; d=google.com; s=arc-20160816; b=ca/Ve/x2UgZJuzQiR98VRZQ9BdA1dJxSGSWMIetS/8FCosB5NeDGf9PhcmJW1mJBil HITE/tnZEiM1B5JtkeQq9gdn4dS5QXP67EUbpprJNZeJKFRoo4ouB2FKcUqJKgv99qNS Ljg8THcWBufUwvP/fV3cCElF6dTREXIpj1iz9LB+86EWKQI16uVaWz6pfCZAAe5IY44P Rthv+CqujU2uo2SqyCal79qWHw1DLAIhcfCQLvqe1kUTVlHZz7u+UW+uqSfrlKeO2imG chDC0KpriIu81a+B3sg3Wo1hSECI1aLifBg8u8B1Q7Aih/gJegpOJ26eLna6TQRHv1g+ iG7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=mj/eSoon9TqudQlXM/h7RBIThS0FTjAmDZcssY9SHD8=; b=hsOx7M0z5F6UDMGF6xDpcRatOS8iPNgjfy2fjzVx5L6XyMpl2LuoBqNHWlgL6g97Tp Cio/nC6L0ECcrmbiLog76UVRkkEaKZ8n2X67vyeP+4bLvwxDXjE5J9Xmg/encdzGzpjK nsEob6bM0xRH96V/5Uh+4eJVdjbaKlEsRR2Xv7dLvw/utfKDayof4uwg2VVBK1m4GqwC xan6BPWKxk6JSo7zeRD+5Z9NUwzIgAAgGrzKWyFA0CM69ouiIzdLOUnlX35EIfrHL0GW jQaf2o3YOa+/8XdMIq/TMvqdVGD/Y8DHyRvoxKq5V1JxcFtlHB6v6eE3zVuBikDg+rRF lG/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si984257ede.389.2019.10.30.02.32.42; Wed, 30 Oct 2019 02:33:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbfJ3Jbv (ORCPT + 99 others); Wed, 30 Oct 2019 05:31:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5228 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726028AbfJ3Jbu (ORCPT ); Wed, 30 Oct 2019 05:31:50 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4F3B979BCF39E7193C8F; Wed, 30 Oct 2019 17:31:49 +0800 (CST) Received: from [127.0.0.1] (10.133.219.218) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Wed, 30 Oct 2019 17:31:44 +0800 Message-ID: <5DB9587F.8050705@huawei.com> Date: Wed, 30 Oct 2019 17:31:43 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Greg KH CC: , Subject: Re: [PATCH] fault-inject: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops References: <1572423756-59943-1-git-send-email-zhongjiang@huawei.com> <20191030091051.GA634735@kroah.com> In-Reply-To: <20191030091051.GA634735@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.219.218] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/30 17:10, Greg KH wrote: > On Wed, Oct 30, 2019 at 04:22:36PM +0800, zhong jiang wrote: >> It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file >> operation rather than DEFINE_SIMPLE_ATTRIBUTE. > Why does this matter? What does this change? You are changing how some > of the file reference counting works now, are you sure this is ok? I think that it is more correct to use DEFINE_DEBUGFS_ATTRIBUTE(), since they are debugfs attrs. It is designed and defined for debugfs fops. Of course, Use DEFINE_SIMPLE_ATTRIBUTE here to define debugfs attrs is feasible functionally. Thanks, zhong jiang > thanks, > > greg k-h > > . >