Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / fs / ext4 / file.c
index 257118d4d078c111d8953559b8d797db531a41a0..fa2208bae2e1211d8d761dd4e90e934a64575306 100644 (file)
@@ -374,7 +374,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,
@@ -432,8 +432,8 @@ static int ext4_find_unwritten_pgoff(struct inode *inode,
        lastoff = startoff;
        endoff = (loff_t)end_blk << blkbits;
 
-       index = startoff >> PAGE_CACHE_SHIFT;
-       end = endoff >> PAGE_CACHE_SHIFT;
+       index = startoff >> PAGE_SHIFT;
+       end = endoff >> PAGE_SHIFT;
 
        pagevec_init(&pvec, 0);
        do {
This page took 0.02693 seconds and 5 git commands to generate.