From: ebiederm@xmission.com (Eric W. Biederman) Subject: [PATCH] vfs: Remove incorrect debugging WARN in prepend_path Date: Sat, 06 Jun 2015 14:30:52 -0500 Message-ID: <87h9qkws5v.fsf_-_@x220.int.ebiederm.org> References: <20150515185820.GQ20468@ycc.fr> <20150520100557.GB32189@mew> <87bnhedhw5.fsf_-_@x220.int.ebiederm.org> <20150520232325.GA7232@ZenIV.linux.org.uk> <20150603205128.GN22078@ycc.fr> <87pp58wsbn.fsf@x220.int.ebiederm.org> Mime-Version: 1.0 Content-Type: text/plain Cc: Omar Sandoval , linux-fsdevel@vger.kernel.org, Ivan Delalande To: Al Viro Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]:56723 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbbFFTf7 (ORCPT ); Sat, 6 Jun 2015 15:35:59 -0400 In-Reply-To: <87pp58wsbn.fsf@x220.int.ebiederm.org> (Eric W. Biederman's message of "Sat, 06 Jun 2015 14:27:24 -0500") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The warning message in prepend_path is unclear and outdated. It was added as a warning that the mechanism for generating names of pseudo files had been removed from prepend_path and d_dname should be used instead. Unfortunately the warning reads like a general warning, making it unclear what to do with it. Remove the warning. The transition it was added to warn about is long over, and I added code several years ago which in rare cases causes the warning to fire on legitimate code, and the warning is now firing and scaring people for no good reason. Cc: stable@vger.kernel.org Reported-by: Ivan Delalande Reported-by: Omar Sandoval Fixes: f48cfddc6729e ("vfs: In d_path don't call d_dname on a mount point") Signed-off-by: "Eric W. Biederman" --- Al would you like to pick this one up or should I? fs/dcache.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 656ce522a218..615dfc2aa752 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2927,17 +2927,6 @@ restart: vfsmnt = &mnt->mnt; continue; } - /* - * Filesystems needing to implement special "root names" - * should do so with ->d_dname() - */ - if (IS_ROOT(dentry) && - (dentry->d_name.len != 1 || - dentry->d_name.name[0] != '/')) { - WARN(1, "Root dentry has weird name <%.*s>\n", - (int) dentry->d_name.len, - dentry->d_name.name); - } if (!error) error = is_mounted(vfsmnt) ? 1 : 2; break; -- 2.2.1