]> git.ipfire.org Git - people/ms/linux.git/blobdiff - fs/ecryptfs/file.c
new helper: file_inode(file)
[people/ms/linux.git] / fs / ecryptfs / file.c
index d45ba4568128eb17baf60535d6dc00e663196afa..53acc9d0c1384ff8030a17e922a7e6fb45dcf081 100644 (file)
@@ -118,7 +118,7 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir)
 
        lower_file = ecryptfs_file_to_lower(file);
        lower_file->f_pos = file->f_pos;
-       inode = file->f_path.dentry->d_inode;
+       inode = file_inode(file);
        memset(&buf, 0, sizeof(buf));
        buf.dirent = dirent;
        buf.dentry = file->f_path.dentry;
@@ -133,7 +133,7 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir)
                goto out;
        if (rc >= 0)
                fsstack_copy_attr_atime(inode,
-                                       lower_file->f_path.dentry->d_inode);
+                                       file_inode(lower_file));
 out:
        return rc;
 }