From patchwork Fri Mar 30 16:43:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 10318137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 543F660383 for ; Fri, 30 Mar 2018 17:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 417952A615 for ; Fri, 30 Mar 2018 17:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 359FA2A617; Fri, 30 Mar 2018 17:14:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C90C2A615 for ; Fri, 30 Mar 2018 17:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752331AbeC3ROR (ORCPT ); Fri, 30 Mar 2018 13:14:17 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:12712 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbeC3ROQ (ORCPT ); Fri, 30 Mar 2018 13:14:16 -0400 X-IronPort-AV: E=Sophos;i="5.48,382,1517871600"; d="scan'208";a="260442748" Received: from palace.rsr.lip6.fr (HELO localhost.localdomain) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 30 Mar 2018 19:14:14 +0200 From: Julia Lawall To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, Fabio Estevam , Nicolai Stange , linux-pm@vger.kernel.org, yamada.masahiro@socionext.com Subject: [PATCH] debugfs_simple_attr.cocci: add clarifying information Date: Fri, 30 Mar 2018 18:43:44 +0200 Message-Id: <1522428224-20192-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The referenced commit gives some information about the overhead reduced by this change. Signed-off-by: Julia Lawall --- scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci index 7c31231..6ff97e2 100644 --- a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci +++ b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci @@ -5,6 +5,8 @@ //# Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() //# imposes some significant overhead as compared to //# DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). +//# See commit c64688081490 ("debugfs: add support for self-protecting +//# attribute file fops") for further information. // // Copyright (C): 2016 Nicolai Stange // Options: --no-includes