NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() returns EISDIR

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, April 13, 2010 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/80e60639f1b7c121a7fea53920c5a4b94009361a
Commit:     80e60639f1b7c121a7fea53920c5a4b94009361a
Parent:     0eddb519b9127c73d53db4bf3ec1d45b13f844d1
Author:     Trond Myklebust <Trond.Myklebust@netapp.com>
AuthorDate: Thu Mar 25 13:51:05 2010 -0400
Committer:  Trond Myklebust <Trond.Myklebust@netapp.com>
CommitDate: Fri Apr 9 19:08:16 2010 -0400

    NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() returns EISDIR
    
    Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
    Cc: stable@kernel.org
---
 fs/nfs/dir.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index c6f2750..be46f26 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1025,12 +1025,12 @@ static struct dentry *nfs_atomic_lookup(struct inode *dir, struct dentry *dentry
 				res = NULL;
 				goto out;
 			/* This turned out not to be a regular file */
+			case -EISDIR:
 			case -ENOTDIR:
 				goto no_open;
 			case -ELOOP:
 				if (!(nd->intent.open.flags & O_NOFOLLOW))
 					goto no_open;
-			/* case -EISDIR: */
 			/* case -EINVAL: */
 			default:
 				goto out;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NFSv4: Fall back to ordinary lookup if nfs4_atomic_open() ..., Linux Kernel Mailing ..., (Tue Apr 13, 5:59 pm)