aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/dir.c6
-rw-r--r--fs/ceph/file.c2
-rw-r--r--fs/cifs/readdir.c2
-rw-r--r--fs/ecryptfs/crypto.c2
-rw-r--r--fs/ecryptfs/mmap.c2
-rw-r--r--fs/efivarfs/file.c4
-rw-r--r--fs/sync.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 766ec35f988e..681a8537b64f 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -123,7 +123,7 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
123 u32 shared_gen) 123 u32 shared_gen)
124{ 124{
125 struct ceph_file_info *fi = file->private_data; 125 struct ceph_file_info *fi = file->private_data;
126 struct dentry *parent = file->f_dentry; 126 struct dentry *parent = file->f_path.dentry;
127 struct inode *dir = parent->d_inode; 127 struct inode *dir = parent->d_inode;
128 struct list_head *p; 128 struct list_head *p;
129 struct dentry *dentry, *last; 129 struct dentry *dentry, *last;
@@ -274,7 +274,7 @@ static int ceph_readdir(struct file *file, struct dir_context *ctx)
274 off = 1; 274 off = 1;
275 } 275 }
276 if (ctx->pos == 1) { 276 if (ctx->pos == 1) {
277 ino_t ino = parent_ino(file->f_dentry); 277 ino_t ino = parent_ino(file->f_path.dentry);
278 dout("readdir off 1 -> '..'\n"); 278 dout("readdir off 1 -> '..'\n");
279 if (!dir_emit(ctx, "..", 2, 279 if (!dir_emit(ctx, "..", 2,
280 ceph_translate_ino(inode->i_sb, ino), 280 ceph_translate_ino(inode->i_sb, ino),
@@ -337,7 +337,7 @@ more:
337 } 337 }
338 req->r_inode = inode; 338 req->r_inode = inode;
339 ihold(inode); 339 ihold(inode);
340 req->r_dentry = dget(file->f_dentry); 340 req->r_dentry = dget(file->f_path.dentry);
341 /* hints to request -> mds selection code */ 341 /* hints to request -> mds selection code */
342 req->r_direct_mode = USE_AUTH_MDS; 342 req->r_direct_mode = USE_AUTH_MDS;
343 req->r_direct_hash = ceph_frag_value(frag); 343 req->r_direct_hash = ceph_frag_value(frag);
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index db2c967950f7..9f8e3572040e 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -211,7 +211,7 @@ int ceph_open(struct inode *inode, struct file *file)
211 211
212 req->r_num_caps = 1; 212 req->r_num_caps = 1;
213 if (flags & O_CREAT) 213 if (flags & O_CREAT)
214 parent_inode = ceph_get_dentry_parent_inode(file->f_dentry); 214 parent_inode = ceph_get_dentry_parent_inode(file->f_path.dentry);
215 err = ceph_mdsc_do_request(mdsc, parent_inode, req); 215 err = ceph_mdsc_do_request(mdsc, parent_inode, req);
216 iput(parent_inode); 216 iput(parent_inode);
217 if (!err) 217 if (!err)
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index d19f1996a6ea..d116ca8ce4c0 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -753,7 +753,7 @@ static int cifs_filldir(char *find_entry, struct file *file,
753 */ 753 */
754 fattr.cf_flags |= CIFS_FATTR_NEED_REVAL; 754 fattr.cf_flags |= CIFS_FATTR_NEED_REVAL;
755 755
756 cifs_prime_dcache(file->f_dentry, &name, &fattr); 756 cifs_prime_dcache(file->f_path.dentry, &name, &fattr);
757 757
758 ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid); 758 ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid);
759 return !dir_emit(ctx, name.name, name.len, ino, fattr.cf_dtype); 759 return !dir_emit(ctx, name.name, name.len, ino, fattr.cf_dtype);
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index 2f6735dbf1a9..c2d6604667b0 100644
--- a/fs/ecryptfs/crypto.c
+++ b/fs/ecryptfs/crypto.c
@@ -1373,7 +1373,7 @@ out:
1373int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode) 1373int ecryptfs_read_xattr_region(char *page_virt, struct inode *ecryptfs_inode)
1374{ 1374{
1375 struct dentry *lower_dentry = 1375 struct dentry *lower_dentry =
1376 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_dentry; 1376 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry;
1377 ssize_t size; 1377 ssize_t size;
1378 int rc = 0; 1378 int rc = 0;
1379 1379
diff --git a/fs/ecryptfs/mmap.c b/fs/ecryptfs/mmap.c
index 564a1fa34b99..4626976794e7 100644
--- a/fs/ecryptfs/mmap.c
+++ b/fs/ecryptfs/mmap.c
@@ -419,7 +419,7 @@ static int ecryptfs_write_inode_size_to_xattr(struct inode *ecryptfs_inode)
419 ssize_t size; 419 ssize_t size;
420 void *xattr_virt; 420 void *xattr_virt;
421 struct dentry *lower_dentry = 421 struct dentry *lower_dentry =
422 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_dentry; 422 ecryptfs_inode_to_private(ecryptfs_inode)->lower_file->f_path.dentry;
423 struct inode *lower_inode = lower_dentry->d_inode; 423 struct inode *lower_inode = lower_dentry->d_inode;
424 int rc; 424 int rc;
425 425
diff --git a/fs/efivarfs/file.c b/fs/efivarfs/file.c
index cdb2971192a5..90001da9abfd 100644
--- a/fs/efivarfs/file.c
+++ b/fs/efivarfs/file.c
@@ -47,8 +47,8 @@ static ssize_t efivarfs_file_write(struct file *file,
47 47
48 if (bytes == -ENOENT) { 48 if (bytes == -ENOENT) {
49 drop_nlink(inode); 49 drop_nlink(inode);
50 d_delete(file->f_dentry); 50 d_delete(file->f_path.dentry);
51 dput(file->f_dentry); 51 dput(file->f_path.dentry);
52 } else { 52 } else {
53 mutex_lock(&inode->i_mutex); 53 mutex_lock(&inode->i_mutex);
54 i_size_write(inode, datasize + sizeof(attributes)); 54 i_size_write(inode, datasize + sizeof(attributes));
diff --git a/fs/sync.c b/fs/sync.c
index bdc729d80e5e..01d9f18a70b5 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -154,7 +154,7 @@ SYSCALL_DEFINE1(syncfs, int, fd)
154 154
155 if (!f.file) 155 if (!f.file)
156 return -EBADF; 156 return -EBADF;
157 sb = f.file->f_dentry->d_sb; 157 sb = f.file->f_path.dentry->d_sb;
158 158
159 down_read(&sb->s_umount); 159 down_read(&sb->s_umount);
160 ret = sync_filesystem(sb); 160 ret = sync_filesystem(sb);