Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69281
b: refs/heads/master
c: 216d5d0
h: refs/heads/master
i:
  69279: 7002894
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent 33c7e63 commit 8466e30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 0a5ebc148879be68acdb12fbe72b65cb88c410d9
refs/heads/master: 216d5d06883edfaf992ada0d72a2a22fdfdbd296
6 changes: 5 additions & 1 deletion trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,12 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
/* We can't create new files in nfs_open_revalidate(), so we
* optimize away revalidation of negative dentries.
*/
if (inode == NULL)
if (inode == NULL) {
if (!nfs_neg_need_reval(dir, dentry, nd))
ret = 1;
goto out;
}

/* NFS only supports OPEN on regular files */
if (!S_ISREG(inode->i_mode))
goto no_open;
Expand Down

0 comments on commit 8466e30

Please sign in to comment.