diff options
author | Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> | 2006-12-08 05:36:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:43 -0500 |
commit | a4669ed8ed982dab494c5d4f2b32921e5a6531d8 (patch) | |
tree | 08104d07393d7301a59f1f82c93c63475899139b /fs/autofs4/root.c | |
parent | 81ed19b076f518e793283ccbd004fd0888877201 (diff) |
[PATCH] autofs4: 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 autofs4
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>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index c1493524da4d..8d05b9f7578d 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -74,7 +74,7 @@ struct inode_operations autofs4_dir_inode_operations = { | |||
74 | static int autofs4_root_readdir(struct file *file, void *dirent, | 74 | static int autofs4_root_readdir(struct file *file, void *dirent, |
75 | filldir_t filldir) | 75 | filldir_t filldir) |
76 | { | 76 | { |
77 | struct autofs_sb_info *sbi = autofs4_sbi(file->f_dentry->d_sb); | 77 | struct autofs_sb_info *sbi = autofs4_sbi(file->f_path.dentry->d_sb); |
78 | int oz_mode = autofs4_oz_mode(sbi); | 78 | int oz_mode = autofs4_oz_mode(sbi); |
79 | 79 | ||
80 | DPRINTK("called, filp->f_pos = %lld", file->f_pos); | 80 | DPRINTK("called, filp->f_pos = %lld", file->f_pos); |
@@ -95,8 +95,8 @@ static int autofs4_root_readdir(struct file *file, void *dirent, | |||
95 | 95 | ||
96 | static int autofs4_dir_open(struct inode *inode, struct file *file) | 96 | static int autofs4_dir_open(struct inode *inode, struct file *file) |
97 | { | 97 | { |
98 | struct dentry *dentry = file->f_dentry; | 98 | struct dentry *dentry = file->f_path.dentry; |
99 | struct vfsmount *mnt = file->f_vfsmnt; | 99 | struct vfsmount *mnt = file->f_path.mnt; |
100 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); | 100 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); |
101 | struct dentry *cursor; | 101 | struct dentry *cursor; |
102 | int status; | 102 | int status; |
@@ -172,7 +172,7 @@ out: | |||
172 | 172 | ||
173 | static int autofs4_dir_close(struct inode *inode, struct file *file) | 173 | static int autofs4_dir_close(struct inode *inode, struct file *file) |
174 | { | 174 | { |
175 | struct dentry *dentry = file->f_dentry; | 175 | struct dentry *dentry = file->f_path.dentry; |
176 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); | 176 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); |
177 | struct dentry *cursor = file->private_data; | 177 | struct dentry *cursor = file->private_data; |
178 | int status = 0; | 178 | int status = 0; |
@@ -204,7 +204,7 @@ out: | |||
204 | 204 | ||
205 | static int autofs4_dir_readdir(struct file *file, void *dirent, filldir_t filldir) | 205 | static int autofs4_dir_readdir(struct file *file, void *dirent, filldir_t filldir) |
206 | { | 206 | { |
207 | struct dentry *dentry = file->f_dentry; | 207 | struct dentry *dentry = file->f_path.dentry; |
208 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); | 208 | struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); |
209 | struct dentry *cursor = file->private_data; | 209 | struct dentry *cursor = file->private_data; |
210 | int status; | 210 | int status; |
@@ -858,14 +858,14 @@ static int autofs4_root_ioctl(struct inode *inode, struct file *filp, | |||
858 | return autofs4_ask_reghost(sbi, p); | 858 | return autofs4_ask_reghost(sbi, p); |
859 | 859 | ||
860 | case AUTOFS_IOC_ASKUMOUNT: | 860 | case AUTOFS_IOC_ASKUMOUNT: |
861 | return autofs4_ask_umount(filp->f_vfsmnt, p); | 861 | return autofs4_ask_umount(filp->f_path.mnt, p); |
862 | 862 | ||
863 | /* return a single thing to expire */ | 863 | /* return a single thing to expire */ |
864 | case AUTOFS_IOC_EXPIRE: | 864 | case AUTOFS_IOC_EXPIRE: |
865 | return autofs4_expire_run(inode->i_sb,filp->f_vfsmnt,sbi, p); | 865 | return autofs4_expire_run(inode->i_sb,filp->f_path.mnt,sbi, p); |
866 | /* same as above, but can send multiple expires through pipe */ | 866 | /* same as above, but can send multiple expires through pipe */ |
867 | case AUTOFS_IOC_EXPIRE_MULTI: | 867 | case AUTOFS_IOC_EXPIRE_MULTI: |
868 | return autofs4_expire_multi(inode->i_sb,filp->f_vfsmnt,sbi, p); | 868 | return autofs4_expire_multi(inode->i_sb,filp->f_path.mnt,sbi, p); |
869 | 869 | ||
870 | default: | 870 | default: |
871 | return -ENOSYS; | 871 | return -ENOSYS; |