Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300047
b: refs/heads/master
c: 936ad90
h: refs/heads/master
i:
  300045: efd99c6
  300043: fc8a766
  300039: a1b112d
  300031: aa42854
v: v3
  • Loading branch information
Ian Kent authored and Steve French committed May 3, 2012
1 parent 17bf36b commit e4da3d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: 58fa015f611b51e1f501b048bc5ac263c78852f0
refs/heads/master: 936ad9094462578953042d3395b973f1c9e6fa95
17 changes: 12 additions & 5 deletions trunk/fs/cifs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,19 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
return 0;
else {
/*
* Forcibly invalidate automounting directory inodes
* (remote DFS directories) so to have them
* instantiated again for automount
* If the inode wasn't known to be a dfs entry when
* the dentry was instantiated, such as when created
* via ->readdir(), it needs to be set now since the
* attributes will have been updated by
* cifs_revalidate_dentry().
*/
if (IS_AUTOMOUNT(direntry->d_inode))
return 0;
if (IS_AUTOMOUNT(direntry->d_inode) &&
!(direntry->d_flags & DCACHE_NEED_AUTOMOUNT)) {
spin_lock(&direntry->d_lock);
direntry->d_flags |= DCACHE_NEED_AUTOMOUNT;
spin_unlock(&direntry->d_lock);
}

return 1;
}
}
Expand Down

0 comments on commit e4da3d2

Please sign in to comment.