VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / ocfs2 / export.c
index 29651167190dd15032a5aaa71d2fe066a7bbab97..facf456c481ad5e664692165d8dcbb5bf70bada0 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);