Message ID | 1458205323-25685-4-git-send-email-miklos@szeredi.hu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index feb9ffc6f20d..38847f38b34a 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -380,7 +380,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp) return -ENOKEY; } - dir = dget_parent(filp->f_path.dentry); + dir = dget_parent(file_dentry(filp)); if (ext4_encrypted_inode(d_inode(dir)) && !ext4_is_child_context_consistent_with_parent(d_inode(dir), inode)) { ext4_warning(inode->i_sb,