summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-12-11 13:19:03 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-11 16:28:12 -0500
commit93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10 (patch)
treeb9b58db3f4422c0f459a7ed8f1e55c1e45ecf540
parentd465887f9d6b692214b0edffddf150eb702d35d9 (diff)
downloadop-kernel-dev-93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10.zip
op-kernel-dev-93fe74b2e2b5d266d630f0c3f8287efcbe6ecd10.tar.gz
coda_venus_readdir(): use file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/coda/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/coda/dir.c b/fs/coda/dir.c
index 7ff0259..86c8938 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;
OpenPOWER on IntegriCloud