diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-17 17:19:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-21 02:47:54 +0200 |
commit | b85fd6bdc99da917f5ae0f90f0c2d86ef9a766aa (patch) | |
tree | 234aae960810ead4ad2811a31b0898afce7b46e1 /fs/cifs/readdir.c | |
parent | minix_getattr(): don't bother with ->d_parent (diff) | |
download | linux-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/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 6751e745bbc6..965a3af186a1 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c @@ -796,7 +796,7 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir) file->f_pos++; case 1: if (filldir(direntry, "..", 2, file->f_pos, - file->f_path.dentry->d_parent->d_inode->i_ino, DT_DIR) < 0) { + parent_ino(file->f_path.dentry), DT_DIR) < 0) { cERROR(1, "Filldir for parent dir failed"); rc = -ENOMEM; break; |