summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-02-27 07:01:43 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-27 07:01:43 -0800
commitea3d5d12e318d3c2a00a3ee34c9309c559a3601e (patch)
tree311c507e5cec6f7a62c4d9a5f82eac7093949fe6
parentecccde0fdd261afe87850aeebf7cd95c736c9e6a (diff)
d_validate() needs to use "__dget_locked()" since it's holding the
dcache lock. Found by Maneesh Soni <maneesh@in.ibm.com>
-rw-r--r--fs/dcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index ef29520b5325..b997aad9dbe6 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1056,7 +1056,7 @@ int d_validate(struct dentry *dentry, struct dentry *dparent)
* as it is parsed under dcache_lock
*/
if (dentry == list_entry(lhp, struct dentry, d_hash)) {
- dget(dentry);
+ __dget_locked(dentry);
spin_unlock(&dcache_lock);
return 1;
}