OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec193cf
)
make simple_lookup() usable for filesystems that set ->s_d_op
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 14 Jul 2013 13:43:25 +0000
(17:43 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 14 Jul 2013 13:43:25 +0000
(17:43 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/libfs.c
patch
|
blob
|
history
diff --git
a/fs/libfs.c
b/fs/libfs.c
index
c3a0837
..
3a3a9b5
100644
(file)
--- a/
fs/libfs.c
+++ b/
fs/libfs.c
@@
-61,7
+61,8
@@
struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned
if (dentry->d_name.len > NAME_MAX)
return ERR_PTR(-ENAMETOOLONG);
- d_set_d_op(dentry, &simple_dentry_operations);
+ if (!dentry->d_sb->s_d_op)
+ d_set_d_op(dentry, &simple_dentry_operations);
d_add(dentry, NULL);
return NULL;
}