projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
afs: Fix creation calls in the dynamic root to fail with EOPNOTSUPP
[linux-2.6-microblaze.git]
/
fs
/
afs
/
dynroot.c
diff --git
a/fs/afs/dynroot.c
b/fs/afs/dynroot.c
index
4150280
..
7503899
100644
(file)
--- a/
fs/afs/dynroot.c
+++ b/
fs/afs/dynroot.c
@@
-136,6
+136,9
@@
static struct dentry *afs_dynroot_lookup(struct inode *dir, struct dentry *dentr
ASSERTCMP(d_inode(dentry), ==, NULL);
+ if (flags & LOOKUP_CREATE)
+ return ERR_PTR(-EOPNOTSUPP);
+
if (dentry->d_name.len >= AFSNAMEMAX) {
_leave(" = -ENAMETOOLONG");
return ERR_PTR(-ENAMETOOLONG);