git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix i_mutex vs. readdir handling in nfsd
[safe/jmp/linux-2.6]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index
b8433eb
..
78f253c
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-1248,6
+1248,8
@@
struct dentry *lookup_one_len(const char *name, struct dentry *base, int len)
int err;
struct qstr this;
+ WARN_ON_ONCE(!mutex_is_locked(&base->d_inode->i_mutex));
+
err = __lookup_one_len(name, &this, base, len);
if (err)
return ERR_PTR(err);