summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-04-22 21:35:55 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-04-22 21:35:55 +0200
commit1f063d2cdf332a8a5722006b1345d15d16007c6e (patch)
tree4295c3fd46390f12e1ed2354998a91007f85fb13 /fs
parentSUNRPC: Fix a bug in rpcauth_prune_expired (diff)
downloadlinux-1f063d2cdf332a8a5722006b1345d15d16007c6e.tar.xz
linux-1f063d2cdf332a8a5722006b1345d15d16007c6e.zip
NFSv4: Don't attempt an atomic open if the file is a mountpoint
Fix https://bugzilla.kernel.org/show_bug.cgi?id=15789 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index be46f26c9a56..fbb4cf79a20e 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1050,7 +1050,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
struct inode *dir;
int openflags, ret = 0;
- if (!is_atomic_open(nd))
+ if (!is_atomic_open(nd) || d_mountpoint(dentry))
goto no_open;
parent = dget_parent(dentry);
dir = parent->d_inode;