diff options
author | David S. Miller <davem@davemloft.net> | 2012-04-10 14:30:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-10 14:30:45 -0400 |
commit | 06eb4eafbdc0796d741d139a44f1253278da8611 (patch) | |
tree | fbdb44317130c371928154c9e6903e699fe2b995 /fs/dcache.c | |
parent | 32ed53b83ea5ec26a4dba90e18f5e0ff6c71eb48 (diff) | |
parent | f68e556e23d1a4176b563bcb25d8baf2c5313f91 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index e9a07b2a0948..b60ddc41d783 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -2404,6 +2404,7 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) | |||
2404 | if (d_ancestor(alias, dentry)) { | 2404 | if (d_ancestor(alias, dentry)) { |
2405 | /* Check for loops */ | 2405 | /* Check for loops */ |
2406 | actual = ERR_PTR(-ELOOP); | 2406 | actual = ERR_PTR(-ELOOP); |
2407 | spin_unlock(&inode->i_lock); | ||
2407 | } else if (IS_ROOT(alias)) { | 2408 | } else if (IS_ROOT(alias)) { |
2408 | /* Is this an anonymous mountpoint that we | 2409 | /* Is this an anonymous mountpoint that we |
2409 | * could splice into our tree? */ | 2410 | * could splice into our tree? */ |
@@ -2413,7 +2414,7 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) | |||
2413 | goto found; | 2414 | goto found; |
2414 | } else { | 2415 | } else { |
2415 | /* Nope, but we must(!) avoid directory | 2416 | /* Nope, but we must(!) avoid directory |
2416 | * aliasing */ | 2417 | * aliasing. This drops inode->i_lock */ |
2417 | actual = __d_unalias(inode, dentry, alias); | 2418 | actual = __d_unalias(inode, dentry, alias); |
2418 | } | 2419 | } |
2419 | write_sequnlock(&rename_lock); | 2420 | write_sequnlock(&rename_lock); |