Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660AbZKBLN5 (ORCPT ); Mon, 2 Nov 2009 06:13:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754442AbZKBLN5 (ORCPT ); Mon, 2 Nov 2009 06:13:57 -0500 Received: from outbound.icp-qv1-irony-out5.iinet.net.au ([203.59.1.105]:30202 "EHLO outbound.icp-qv1-irony-out5.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754398AbZKBLN4 (ORCPT ); Mon, 2 Nov 2009 06:13:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAANO7krLzn0N/2dsb2JhbADaV4Q5BIFidA X-IronPort-AV: E=Sophos;i="4.44,666,1249228800"; d="scan'208";a="53876496" Message-ID: <4AEEBEF1.8050807@themaw.net> Date: Mon, 02 Nov 2009 19:13:53 +0800 From: Ian Kent User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Jan Blunck CC: linux-fsdevel@vger.kernel.org, Matthew Wilcox , linux-kernel@vger.kernel.org, James Morris , Al Viro , Jeff Moyer , Andrew Morton , autofs@linux.kernel.org Subject: Re: [PATCH 10/27] BKL: Remove BKL from autofs4 References: <1257156307-24175-1-git-send-email-jblunck@suse.de> <1257156307-24175-11-git-send-email-jblunck@suse.de> In-Reply-To: <1257156307-24175-11-git-send-email-jblunck@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1405 Lines: 50 Jan Blunck wrote: > BKL is only used in fill_super. It is safe to remove it. Yes, I think so too. Of course this will make co-coordinating the rename of autofs4 to autofs a bit more painful, ;) > > Signed-off-by: Jan Blunck Acked-by: Ian Kent > --- > fs/autofs4/inode.c | 4 ---- > 1 files changed, 0 insertions(+), 4 deletions(-) > > diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c > index 3adaba9..69c8142 100644 > --- a/fs/autofs4/inode.c > +++ b/fs/autofs4/inode.c > @@ -323,8 +323,6 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) > struct autofs_sb_info *sbi; > struct autofs_info *ino; > > - lock_kernel(); > - > sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); > if (!sbi) > goto fail_unlock; > @@ -420,7 +418,6 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) > * Success! Install the root dentry now to indicate completion. > */ > s->s_root = root; > - unlock_kernel(); > return 0; > > /* > @@ -442,7 +439,6 @@ fail_free: > kfree(sbi); > s->s_fs_info = NULL; > fail_unlock: > - unlock_kernel(); > return -EINVAL; > } > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/