Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217813
b: refs/heads/master
c: 0461ee2
h: refs/heads/master
i:
  217811: 70eadd6
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Oct 26, 2010
1 parent ea995f6 commit 01921d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 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: 3825bdb7ed920845961f32f364454bee5f469abb
refs/heads/master: 0461ee2616252f1f6cec628990fa913a4282dcf7
17 changes: 8 additions & 9 deletions trunk/fs/exportfs/expfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,20 @@ static struct dentry *
find_disconnected_root(struct dentry *dentry)
{
dget(dentry);
spin_lock(&dentry->d_lock);
while (!IS_ROOT(dentry) &&
(dentry->d_parent->d_flags & DCACHE_DISCONNECTED)) {
struct dentry *parent = dentry->d_parent;
dget(parent);
spin_unlock(&dentry->d_lock);
while (!IS_ROOT(dentry)) {
struct dentry *parent = dget_parent(dentry);

if (!(parent->d_flags & DCACHE_DISCONNECTED)) {
dput(parent);
break;
}

dput(dentry);
dentry = parent;
spin_lock(&dentry->d_lock);
}
spin_unlock(&dentry->d_lock);
return dentry;
}


/*
* Make sure target_dir is fully connected to the dentry tree.
*
Expand Down

0 comments on commit 01921d7

Please sign in to comment.