]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ext4/super.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / fs / ext4 / super.c
index 3d4fb81bacd540ca7b81fd4005f392aa7a516b53..4df78dd3f5234ae5eb613963ee1dd2571ca6f925 100644 (file)
@@ -553,7 +553,7 @@ void ext4_error_file(struct file *file, const char *function,
        va_list args;
        struct va_format vaf;
        struct ext4_super_block *es;
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file_inode(file);
        char pathname[80], *path;
 
        es = EXT4_SB(inode->i_sb)->s_es;