projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1df98b8
)
coda: don't bother with find_inode_number()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 19 Jun 2013 09:21:03 +0000
(13:21 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:20 +0000
(12:57 +0400)
the fallback it's using for dcache misses is actually the
same value we would've used for inumber anyway.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/coda/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/coda/dir.c
b/fs/coda/dir.c
index 87e0ee9f4465e5b0bfc7bde48657314be18258b3..14a14808320cf1e555d8ca14fdd604590d8b723f 100644
(file)
--- a/
fs/coda/dir.c
+++ b/
fs/coda/dir.c
@@
-487,13
+487,7
@@
static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx)
/* skip null entries */
if (vdir->d_fileno && name.len) {
- /* try to look up this entry in the dcache, that way
- * userspace doesn't have to worry about breaking
- * getcwd by having mismatched inode numbers for
- * internal volume mountpoints. */
- ino = find_inode_number(de, &name);
- if (!ino) ino = vdir->d_fileno;
-
+ ino = vdir->d_fileno;
type = CDT2DT(vdir->d_type);
if (!dir_emit(ctx, name.name, name.len, ino, type))
break;