diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-11 19:19:03 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-11 22:28:12 +0100 |
commit | 93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10 (patch) | |
tree | b9b58db3f4422c0f459a7ed8f1e55c1e45ecf540 /fs | |
parent | fs/namei.c: fold link_path_walk() call into path_init() (diff) | |
download | linux-93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10.tar.xz linux-93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10.zip |
coda_venus_readdir(): use file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/coda/dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 7ff025966e4f..86c893884eb9 100644 --- a/fs/coda/dir.c +++ b/fs/coda/dir.c @@ -426,7 +426,6 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx) struct coda_file_info *cfi; struct coda_inode_info *cii; struct file *host_file; - struct dentry *de; struct venus_dirent *vdir; unsigned long vdir_size = offsetof(struct venus_dirent, d_name); unsigned int type; @@ -438,8 +437,7 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx) BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); host_file = cfi->cfi_container; - de = coda_file->f_path.dentry; - cii = ITOC(de->d_inode); + cii = ITOC(file_inode(coda_file)); vdir = kmalloc(sizeof(*vdir), GFP_KERNEL); if (!vdir) return -ENOMEM; |