coda_venus_readdir(): use file_inode()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2014-12-11 13:19:03 -05:00
parent d465887f9d
commit 93fe74b2e2
1 changed files with 1 additions and 3 deletions

View File

@ -426,7 +426,6 @@ static int coda_venus_readdir(struct file *coda_file, struct dir_context *ctx)
struct coda_file_info *cfi; struct coda_file_info *cfi;
struct coda_inode_info *cii; struct coda_inode_info *cii;
struct file *host_file; struct file *host_file;
struct dentry *de;
struct venus_dirent *vdir; struct venus_dirent *vdir;
unsigned long vdir_size = offsetof(struct venus_dirent, d_name); unsigned long vdir_size = offsetof(struct venus_dirent, d_name);
unsigned int type; 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); BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC);
host_file = cfi->cfi_container; host_file = cfi->cfi_container;
de = coda_file->f_path.dentry; cii = ITOC(file_inode(coda_file));
cii = ITOC(de->d_inode);
vdir = kmalloc(sizeof(*vdir), GFP_KERNEL); vdir = kmalloc(sizeof(*vdir), GFP_KERNEL);
if (!vdir) return -ENOMEM; if (!vdir) return -ENOMEM;