VFS: normal filesystems (and lustre): d_inode() annotations
[linux-2.6-block.git] / fs / ecryptfs / file.c
index a65786e26b05ac97dbaab6a6258e533aa842cece..72afcc629d7b1fee2963fb90e1691a221eb77d8e 100644 (file)
@@ -130,7 +130,7 @@ struct kmem_cache *ecryptfs_file_info_cache;
 
 static int read_or_initialize_metadata(struct dentry *dentry)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = d_inode(dentry);
        struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
        struct ecryptfs_crypt_stat *crypt_stat;
        int rc;