summaryrefslogtreecommitdiffstats
path: root/fs/coda/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-17 17:19:44 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-21 02:47:54 +0200
commitb85fd6bdc99da917f5ae0f90f0c2d86ef9a766aa (patch)
tree234aae960810ead4ad2811a31b0898afce7b46e1 /fs/coda/dir.c
parentminix_getattr(): don't bother with ->d_parent (diff)
downloadlinux-b85fd6bdc99da917f5ae0f90f0c2d86ef9a766aa.tar.xz
linux-b85fd6bdc99da917f5ae0f90f0c2d86ef9a766aa.zip
don't open-code parent_ino() in assorted ->readdir()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coda/dir.c')
-rw-r--r--fs/coda/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c
index 9d52897c1b6d..0239433f50cb 100644
--- a/fs/coda/dir.c
+++ b/fs/coda/dir.c
@@ -473,7 +473,7 @@ static int coda_venus_readdir(struct file *coda_file, void *buf,
coda_file->f_pos++;
}
if (coda_file->f_pos == 1) {
- ret = filldir(buf, "..", 2, 1, de->d_parent->d_inode->i_ino, DT_DIR);
+ ret = filldir(buf, "..", 2, 1, parent_ino(de), DT_DIR);
if (ret < 0)
goto out;
result++;