Re: [PATCH 1/4] VFS: Add VFS helper functions for setting up private namespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux