diff options
Diffstat (limited to 'fs/ecryptfs/file.c')
-rw-r--r-- | fs/ecryptfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index d45ba4568128..53acc9d0c138 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c | |||
@@ -118,7 +118,7 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir) | |||
118 | 118 | ||
119 | lower_file = ecryptfs_file_to_lower(file); | 119 | lower_file = ecryptfs_file_to_lower(file); |
120 | lower_file->f_pos = file->f_pos; | 120 | lower_file->f_pos = file->f_pos; |
121 | inode = file->f_path.dentry->d_inode; | 121 | inode = file_inode(file); |
122 | memset(&buf, 0, sizeof(buf)); | 122 | memset(&buf, 0, sizeof(buf)); |
123 | buf.dirent = dirent; | 123 | buf.dirent = dirent; |
124 | buf.dentry = file->f_path.dentry; | 124 | buf.dentry = file->f_path.dentry; |
@@ -133,7 +133,7 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir) | |||
133 | goto out; | 133 | goto out; |
134 | if (rc >= 0) | 134 | if (rc >= 0) |
135 | fsstack_copy_attr_atime(inode, | 135 | fsstack_copy_attr_atime(inode, |
136 | lower_file->f_path.dentry->d_inode); | 136 | file_inode(lower_file)); |
137 | out: | 137 | out: |
138 | return rc; | 138 | return rc; |
139 | } | 139 | } |