diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-19 05:21:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 04:57:20 -0400 |
commit | 6b5e1223d9c3fae19b1a2acd789d9dab97de67c4 (patch) | |
tree | ba94da4e346b50faad8016580bee54613a60351c /fs/coda/dir.c | |
parent | 1df98b8bbccab87f9da27b4661bf528212ffd5a2 (diff) |
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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r-- | fs/coda/dir.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 87e0ee9f4465..14a14808320c 100644 --- 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) | |||
487 | 487 | ||
488 | /* skip null entries */ | 488 | /* skip null entries */ |
489 | if (vdir->d_fileno && name.len) { | 489 | if (vdir->d_fileno && name.len) { |
490 | /* try to look up this entry in the dcache, that way | 490 | ino = vdir->d_fileno; |
491 | * userspace doesn't have to worry about breaking | ||
492 | * getcwd by having mismatched inode numbers for | ||
493 | * internal volume mountpoints. */ | ||
494 | ino = find_inode_number(de, &name); | ||
495 | if (!ino) ino = vdir->d_fileno; | ||
496 | |||
497 | type = CDT2DT(vdir->d_type); | 491 | type = CDT2DT(vdir->d_type); |
498 | if (!dir_emit(ctx, name.name, name.len, ino, type)) | 492 | if (!dir_emit(ctx, name.name, name.len, ino, type)) |
499 | break; | 493 | break; |