]> Pileus Git - ~andy/linux/blobdiff - fs/coda/dir.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[~andy/linux] / fs / coda / dir.c
index 49fe52d256009729ae9c9ec5cfd1b684255219f3..b7d3a05c062c0517bdcee3aedf01619f60bddc7a 100644 (file)
@@ -397,7 +397,7 @@ static int coda_readdir(struct file *coda_file, void *buf, filldir_t filldir)
                 * We can't use vfs_readdir because we have to keep the file
                 * position in sync between the coda_file and the host_file.
                 * and as such we need grab the inode mutex. */
-               struct inode *host_inode = host_file->f_path.dentry->d_inode;
+               struct inode *host_inode = file_inode(host_file);
 
                mutex_lock(&host_inode->i_mutex);
                host_file->f_pos = coda_file->f_pos;