diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/autofs4/autofs_i.h | 3 | ||||
-rw-r--r-- | fs/autofs4/root.c | 16 |
2 files changed, 10 insertions, 9 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index b13f32c8aeee..216b1a364ccb 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -150,7 +150,8 @@ static inline int autofs4_ispending(struct dentry *dentry) | |||
150 | 150 | ||
151 | static inline void autofs4_copy_atime(struct file *src, struct file *dst) | 151 | static inline void autofs4_copy_atime(struct file *src, struct file *dst) |
152 | { | 152 | { |
153 | dst->f_dentry->d_inode->i_atime = src->f_dentry->d_inode->i_atime; | 153 | dst->f_path.dentry->d_inode->i_atime = |
154 | src->f_path.dentry->d_inode->i_atime; | ||
154 | return; | 155 | return; |
155 | } | 156 | } |
156 | 157 | ||
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; |