Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230860
b: refs/heads/master
c: 90dbb77
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Nick Piggin committed Jan 14, 2011
1 parent 824f4fa commit 61057fd
Show file tree
Hide file tree
Showing 2 changed files with 9 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: bb20c18db6fbb5e6ba499c76473a487d35073467
refs/heads/master: 90dbb77ba48dddb87445d238e84cd137cf97dd98
8 changes: 8 additions & 0 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ static int nameidata_dentry_drop_rcu(struct nameidata *nd, struct dentry *dentry
struct fs_struct *fs = current->fs;
struct dentry *parent = nd->path.dentry;

/*
* It can be possible to revalidate the dentry that we started
* the path walk with. force_reval_path may also revalidate the
* dentry already committed to the nameidata.
*/
if (unlikely(parent == dentry))
return nameidata_drop_rcu(nd);

BUG_ON(!(nd->flags & LOOKUP_RCU));
if (nd->root.mnt) {
spin_lock(&fs->lock);
Expand Down

0 comments on commit 61057fd

Please sign in to comment.