X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fecryptfs%2Ffile.c;h=72afcc629d7b1fee2963fb90e1691a221eb77d8e;hb=e965b8ce4215ac2b22b23ffc8a8dfbae964b9496;hp=a65786e26b05ac97dbaab6a6258e533aa842cece;hpb=d19d133e432248c9b3efa9c10dda5f050cbbcd72;p=linux-2.6-block.git diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index a65786e26b05..72afcc629d7b 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c @@ -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;