aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ecryptfs/file.c')
-rw-r--r--fs/ecryptfs/file.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c
index c48e4590b110..c5a2e5298f15 100644
--- a/fs/ecryptfs/file.c
+++ b/fs/ecryptfs/file.c
@@ -76,7 +76,7 @@ static loff_t ecryptfs_llseek(struct file *file, loff_t offset, int origin)
76 } 76 }
77 ecryptfs_printk(KERN_DEBUG, "new_end_pos = [0x%.16x]\n", new_end_pos); 77 ecryptfs_printk(KERN_DEBUG, "new_end_pos = [0x%.16x]\n", new_end_pos);
78 if (expanding_file) { 78 if (expanding_file) {
79 rc = ecryptfs_truncate(file->f_dentry, new_end_pos); 79 rc = ecryptfs_truncate(file->f_path.dentry, new_end_pos);
80 if (rc) { 80 if (rc) {
81 rv = rc; 81 rv = rc;
82 ecryptfs_printk(KERN_ERR, "Error on attempt to " 82 ecryptfs_printk(KERN_ERR, "Error on attempt to "
@@ -117,8 +117,8 @@ static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb,
117 if (-EIOCBQUEUED == rc) 117 if (-EIOCBQUEUED == rc)
118 rc = wait_on_sync_kiocb(iocb); 118 rc = wait_on_sync_kiocb(iocb);
119 if (rc >= 0) { 119 if (rc >= 0) {
120 lower_dentry = ecryptfs_dentry_to_lower(file->f_dentry); 120 lower_dentry = ecryptfs_dentry_to_lower(file->f_path.dentry);
121 lower_vfsmount = ecryptfs_dentry_to_lower_mnt(file->f_dentry); 121 lower_vfsmount = ecryptfs_dentry_to_lower_mnt(file->f_path.dentry);
122 touch_atime(lower_vfsmount, lower_dentry); 122 touch_atime(lower_vfsmount, lower_dentry);
123 } 123 }
124 return rc; 124 return rc;
@@ -177,10 +177,10 @@ static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir)
177 177
178 lower_file = ecryptfs_file_to_lower(file); 178 lower_file = ecryptfs_file_to_lower(file);
179 lower_file->f_pos = file->f_pos; 179 lower_file->f_pos = file->f_pos;
180 inode = file->f_dentry->d_inode; 180 inode = file->f_path.dentry->d_inode;
181 memset(&buf, 0, sizeof(buf)); 181 memset(&buf, 0, sizeof(buf));
182 buf.dirent = dirent; 182 buf.dirent = dirent;
183 buf.dentry = file->f_dentry; 183 buf.dentry = file->f_path.dentry;
184 buf.filldir = filldir; 184 buf.filldir = filldir;
185retry: 185retry:
186 buf.filldir_called = 0; 186 buf.filldir_called = 0;
@@ -193,7 +193,7 @@ retry:
193 goto retry; 193 goto retry;
194 file->f_pos = lower_file->f_pos; 194 file->f_pos = lower_file->f_pos;
195 if (rc >= 0) 195 if (rc >= 0)
196 fsstack_copy_attr_atime(inode, lower_file->f_dentry->d_inode); 196 fsstack_copy_attr_atime(inode, lower_file->f_path.dentry->d_inode);
197 return rc; 197 return rc;
198} 198}
199 199
@@ -240,7 +240,7 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
240 int rc = 0; 240 int rc = 0;
241 struct ecryptfs_crypt_stat *crypt_stat = NULL; 241 struct ecryptfs_crypt_stat *crypt_stat = NULL;
242 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; 242 struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
243 struct dentry *ecryptfs_dentry = file->f_dentry; 243 struct dentry *ecryptfs_dentry = file->f_path.dentry;
244 /* Private value of ecryptfs_dentry allocated in 244 /* Private value of ecryptfs_dentry allocated in
245 * ecryptfs_lookup() */ 245 * ecryptfs_lookup() */
246 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry); 246 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry);