From: Trond Myklebust Subject: Re: [PATCH 1/4] VFS: Add VFS helper functions for setting up private namespaces Date: Thu, 18 Jun 2009 14:43:02 -0700 Message-ID: <1245361382.8756.47.camel@heimdal.trondhjem.org> References: <20090618192500.19433.16770.stgit@heimdal.trondhjem.org> <20090618192500.19433.90622.stgit@heimdal.trondhjem.org> <20090618205547.GA10932@infradead.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Al Viro , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org To: Christoph Hellwig Return-path: Received: from mx2.netapp.com ([216.240.18.37]:58201 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbZFRVnB (ORCPT ); Thu, 18 Jun 2009 17:43:01 -0400 In-Reply-To: <20090618205547.GA10932@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 2009-06-18 at 16:55 -0400, Christoph Hellwig wrote: > On Thu, Jun 18, 2009 at 12:25:01PM -0700, Trond Myklebust wrote: > > /* spinlock for vfsmount related operations, inplace of dcache_lock */ > > __cacheline_aligned_in_smp DEFINE_SPINLOCK(vfsmount_lock); > > +EXPORT_SYMBOL(vfsmount_lock); > > This is not mentioned in the patch description and also doesn't seem > to be used in the following patches. > > Exporting it is a really bad idea anyway as it protects data structures > that should not be exposed to filesystems. It is used by the inlined function put_mnt_ns(). It would be trivial to make that an extern, and avoid the need for the vfsmount_lock export. Would that be acceptable? Cheers Trond -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com