From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761424AbbBIWMa (ORCPT ); Mon, 9 Feb 2015 17:12:30 -0500 Received: from smtprelay0057.hostedemail.com ([216.40.44.57]:35158 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755950AbbBIWM3 (ORCPT ); Mon, 9 Feb 2015 17:12:29 -0500 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:69:355:379:541:800:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1543:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2689:2693:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3355:3770:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:4641:5007:6261:7266:7903:8599:8604:9025:9121:9393:10004:10400:10848:10913:11026:11233:11658:11914:12043:12262:12266:12438:12517:12519:12555:12679:12696:12737:12740:12783:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: dust26_89dfb853ab604 X-Filterd-Recvd-Size: 3839 Date: Mon, 9 Feb 2015 17:12:26 -0500 From: Steven Rostedt To: LKML Cc: Ingo Molnar , Andrew Morton , Namhyung Kim Subject: [for-next][PATCH] tracing: Fix comments about tracefs Message-ID: <20150209171226.48f42e69@gandalf.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 75c92ca0171ef419d62b16c0f5b0440d071b3b47 Steven Rostedt (Red Hat) (1): tracing: Fix comments about tracefs ---- fs/tracefs/inode.c | 8 +------- kernel/trace/trace.c | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) --------------------------- commit 75c92ca0171ef419d62b16c0f5b0440d071b3b47 Author: Steven Rostedt (Red Hat) Date: Mon Feb 9 10:18:26 2015 -0500 tracing: Fix comments about tracefs There were some typos and mistakes in the tracefs code and the code that calls tracefs. Link: http://lkml.kernel.org/r/20150209055619.GA30788@sejong Reported-by: Namhyung Kim Signed-off-by: Steven Rostedt diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index d92bdf3b079a..f9adf6f86964 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@ -381,9 +381,6 @@ static struct dentry *end_creating(struct dentry *dentry) * pointer must be passed to the tracefs_remove() function when the file is * to be removed (no automatic cleanup happens if your module is unloaded, * you are responsible here.) If an error occurs, %NULL will be returned. - * - * If tracefs is not enabled in the kernel, the value -%ENODEV will be - * returned. */ struct dentry *tracefs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, @@ -450,9 +447,6 @@ static struct dentry *__create_dir(const char *name, struct dentry *parent, * This function will return a pointer to a dentry if it succeeds. This * pointer must be passed to the tracefs_remove() function when the file is * to be removed. If an error occurs, %NULL will be returned. - * - * If tracing is not enabled in the kernel, the value -%ENODEV will be - * returned. */ struct dentry *tracefs_create_dir(const char *name, struct dentry *parent) { @@ -470,7 +464,7 @@ struct dentry *tracefs_create_dir(const char *name, struct dentry *parent) * * The instances directory is special as it allows for mkdir and rmdir to * to be done by userspace. When a mkdir or rmdir is performed, the inode - * locks are released and the methhods passed in (@mkdir and @rmdir) are + * locks are released and the methods passed in (@mkdir and @rmdir) are * called without locks and with the name of the directory being created * within the instances directory. * diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 3c8913bac204..89755e0df8eb 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6515,7 +6515,7 @@ struct dentry *tracing_init_dentry(void) * As there may still be users that expect the tracing * files to exist in debugfs/tracing, we must automount * the tracefs file system there, so older tools still - * work with the newer kerenl. + * work with the newer kernel. */ tr->dir = debugfs_create_automount("tracing", NULL, trace_automount, NULL);