Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346632
b: refs/heads/master
c: 65a0c14
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 14, 2012
1 parent 5e16bd3 commit 4dd8c51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f018458b30b0d5c535c94e577aa0acbb92e1395
refs/heads/master: 65a0c14954493802de01968a73b849f9fc4b4d1a
11 changes: 8 additions & 3 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,11 @@ static int nfs_is_exclusive_create(struct inode *dir, unsigned int flags)
* particular file and the "nocto" mount flag is not set.
*
*/
static inline
static
int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags)
{
struct nfs_server *server = NFS_SERVER(inode);
int ret;

if (IS_AUTOMOUNT(inode))
return 0;
Expand All @@ -992,9 +993,13 @@ int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags)
if ((flags & LOOKUP_OPEN) && !(server->flags & NFS_MOUNT_NOCTO) &&
(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode)))
goto out_force;
return 0;
out:
return (inode->i_nlink == 0) ? -ENOENT : 0;
out_force:
return __nfs_revalidate_inode(server, inode);
ret = __nfs_revalidate_inode(server, inode);
if (ret != 0)
return ret;
goto out;
}

/*
Expand Down

0 comments on commit 4dd8c51

Please sign in to comment.