Commit dba32306099d6155b773ebe8fc5bcfab60d075d6
Committed by
Linus Torvalds
1 parent
9d549890e6
Exists in
master
and in
20 other branches
[PATCH] fat: 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 fat 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>
Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff
fs/fat/dir.c
... | ... | @@ -579,7 +579,7 @@ |
579 | 579 | if (!memcmp(de->name, MSDOS_DOT, MSDOS_NAME)) |
580 | 580 | inum = inode->i_ino; |
581 | 581 | else if (!memcmp(de->name, MSDOS_DOTDOT, MSDOS_NAME)) { |
582 | - inum = parent_ino(filp->f_dentry); | |
582 | + inum = parent_ino(filp->f_path.dentry); | |
583 | 583 | } else { |
584 | 584 | loff_t i_pos = fat_make_i_pos(sb, bh, de); |
585 | 585 | struct inode *tmp = fat_iget(sb, i_pos); |
... | ... | @@ -643,7 +643,7 @@ |
643 | 643 | |
644 | 644 | static int fat_readdir(struct file *filp, void *dirent, filldir_t filldir) |
645 | 645 | { |
646 | - struct inode *inode = filp->f_dentry->d_inode; | |
646 | + struct inode *inode = filp->f_path.dentry->d_inode; | |
647 | 647 | return __fat_readdir(inode, filp, dirent, filldir, 0, 0); |
648 | 648 | } |
649 | 649 | |
... | ... | @@ -782,7 +782,7 @@ |
782 | 782 | |
783 | 783 | set_fs(KERNEL_DS); |
784 | 784 | lock_kernel(); |
785 | - ret = fat_dir_ioctl(file->f_dentry->d_inode, file, | |
785 | + ret = fat_dir_ioctl(file->f_path.dentry->d_inode, file, | |
786 | 786 | cmd, (unsigned long) &d); |
787 | 787 | unlock_kernel(); |
788 | 788 | set_fs(oldfs); |