VFS: Fix the remaining automounter semantics regressions
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Sep 2011 00:36:09 +0000 (20:36 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Sep 2011 02:16:46 +0000 (19:16 -0700)
commit815d405ceff0d6964683f033e18b9b23a88fba87
tree2bec24a44bc3edbdcedf8ae65256a0533ce4e46a
parentd94c177beeb4469cd4f6e83354ab0223353e98ed
VFS: Fix the remaining automounter semantics regressions

The concensus seems to be that system calls such as stat() etc should
not trigger an automount.  Neither should the l* versions.

This patch therefore adds a LOOKUP_AUTOMOUNT flag to tag those lookups
that _should_ trigger an automount on the last path element.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
[ Edited to leave out the cases that are already covered by LOOKUP_OPEN,
  LOOKUP_DIRECTORY and LOOKUP_CREATE - all of which also fundamentally
  force automounting for their own reasons   - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namespace.c
fs/nfs/super.c
fs/quota/quota.c