Skip to content

Commit fe21a69

Browse files
Josef "Jeff" SipekLinus Torvalds
authored andcommitted
[PATCH] ext3: change uses of f_{dentry, vfsmnt} to use f_path
Change all the uses of f_{dentry,vfsmnt} to f_path.{dentry,mnt} in the ext3 filesystem. Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c29c693 commit fe21a69

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎fs/ext3/dir.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int ext3_readdir(struct file * filp,
103103
struct ext3_dir_entry_2 *de;
104104
struct super_block *sb;
105105
int err;
106-
struct inode *inode = filp->f_dentry->d_inode;
106+
struct inode *inode = filp->f_path.dentry->d_inode;
107107
int ret = 0;
108108

109109
sb = inode->i_sb;
@@ -122,7 +122,7 @@ static int ext3_readdir(struct file * filp,
122122
* We don't set the inode dirty flag since it's not
123123
* critical that it get flushed back to the disk.
124124
*/
125-
EXT3_I(filp->f_dentry->d_inode)->i_flags &= ~EXT3_INDEX_FL;
125+
EXT3_I(filp->f_path.dentry->d_inode)->i_flags &= ~EXT3_INDEX_FL;
126126
}
127127
#endif
128128
stored = 0;
@@ -402,7 +402,7 @@ static int call_filldir(struct file * filp, void * dirent,
402402
{
403403
struct dir_private_info *info = filp->private_data;
404404
loff_t curr_pos;
405-
struct inode *inode = filp->f_dentry->d_inode;
405+
struct inode *inode = filp->f_path.dentry->d_inode;
406406
struct super_block * sb;
407407
int error;
408408

@@ -432,7 +432,7 @@ static int ext3_dx_readdir(struct file * filp,
432432
void * dirent, filldir_t filldir)
433433
{
434434
struct dir_private_info *info = filp->private_data;
435-
struct inode *inode = filp->f_dentry->d_inode;
435+
struct inode *inode = filp->f_path.dentry->d_inode;
436436
struct fname *fname;
437437
int ret;
438438

‎fs/ext3/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ext3_file_write(struct kiocb *iocb, const struct iovec *iov,
5252
unsigned long nr_segs, loff_t pos)
5353
{
5454
struct file *file = iocb->ki_filp;
55-
struct inode *inode = file->f_dentry->d_inode;
55+
struct inode *inode = file->f_path.dentry->d_inode;
5656
ssize_t ret;
5757
int err;
5858

‎fs/ext3/ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
257257
#ifdef CONFIG_COMPAT
258258
long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
259259
{
260-
struct inode *inode = file->f_dentry->d_inode;
260+
struct inode *inode = file->f_path.dentry->d_inode;
261261
int ret;
262262

263263
/* These are just misnamed, they actually get/put from/to user an int */

‎fs/ext3/namei.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ int ext3_htree_fill_tree(struct file *dir_file, __u32 start_hash,
602602

603603
dxtrace(printk("In htree_fill_tree, start hash: %x:%x\n", start_hash,
604604
start_minor_hash));
605-
dir = dir_file->f_dentry->d_inode;
605+
dir = dir_file->f_path.dentry->d_inode;
606606
if (!(EXT3_I(dir)->i_flags & EXT3_INDEX_FL)) {
607607
hinfo.hash_version = EXT3_SB(dir->i_sb)->s_def_hash_version;
608608
hinfo.seed = EXT3_SB(dir->i_sb)->s_hash_seed;
@@ -613,7 +613,7 @@ int ext3_htree_fill_tree(struct file *dir_file, __u32 start_hash,
613613
}
614614
hinfo.hash = start_hash;
615615
hinfo.minor_hash = 0;
616-
frame = dx_probe(NULL, dir_file->f_dentry->d_inode, &hinfo, frames, &err);
616+
frame = dx_probe(NULL, dir_file->f_path.dentry->d_inode, &hinfo, frames, &err);
617617
if (!frame)
618618
return err;
619619

0 commit comments

Comments
 (0)