Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209654
b: refs/heads/master
c: f5a7367
h: refs/heads/master
v: v3
  • Loading branch information
Neil Brown authored and Trond Myklebust committed Aug 10, 2010
1 parent 31372ac commit a2d5786
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 669502ff31d7dba1849aec7ee2450a3c61f57d39
refs/heads/master: f5a73672d1811f2fb1dcb62ca90ceb12b2050ae7
7 changes: 7 additions & 0 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ nfs_opendir(struct inode *inode, struct file *filp)

/* Call generic open code in order to cache credentials */
res = nfs_open(inode, filp);
if (filp->f_path.dentry == filp->f_path.mnt->mnt_root) {
/* This is a mountpoint, so d_revalidate will never
* have been called, so we need to refresh the
* inode (for close-open consistency) ourselves.
*/
__nfs_revalidate_inode(NFS_SERVER(inode), inode);
}
return res;
}

Expand Down

0 comments on commit a2d5786

Please sign in to comment.