Commit 6b5e1223 authored by Al Viro's avatar Al Viro

coda: don't bother with find_inode_number()

the fallback it's using for dcache misses is actually the
same value we would've used for inumber anyway.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1df98b8b
...@@ -487,13 +487,7 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx) ...@@ -487,13 +487,7 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx)
/* skip null entries */ /* skip null entries */
if (vdir->d_fileno && name.len) { if (vdir->d_fileno && name.len) {
/* try to look up this entry in the dcache, that way ino = vdir->d_fileno;
* 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;
type = CDT2DT(vdir->d_type); type = CDT2DT(vdir->d_type);
if (!dir_emit(ctx, name.name, name.len, ino, type)) if (!dir_emit(ctx, name.name, name.len, ino, type))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment