Merge branch 'topic/hda' into for-next
[firefly-linux-kernel-4.4.55.git] / fs / ocfs2 / export.c
index 540dc4bdd042a5035f4a05e7fed0bc06548a1244..827fc9809bc271f09b2c3b7abf4019c31d0e1636 100644 (file)
@@ -147,7 +147,7 @@ static struct dentry *ocfs2_get_parent(struct dentry *child)
        int status;
        u64 blkno;
        struct dentry *parent;
-       struct inode *dir = child->d_inode;
+       struct inode *dir = d_inode(child);
 
        trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name,
                               (unsigned long long)OCFS2_I(dir)->ip_blkno);