]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/hfsplus/dir.c
new helper: file_inode(file)
[mirror_ubuntu-hirsute-kernel.git] / fs / hfsplus / dir.c
index 6b9f921ef2fa178d75ed2e24d0e7a2a424fbf4d2..074e0458924843a2333887197c0fc70621ba2a99 100644 (file)
@@ -122,7 +122,7 @@ fail:
 
 static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir)
 {
-       struct inode *inode = filp->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        struct super_block *sb = inode->i_sb;
        int len, err;
        char strbuf[HFSPLUS_MAX_STRLEN + 1];