diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/ops_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index b3f1e0349ae0..faa07e4b97d0 100644 --- a/fs/gfs2/ops_file.c +++ b/fs/gfs2/ops_file.c | |||
@@ -247,7 +247,7 @@ static const u32 gfs2_to_fsflags[32] = { | |||
247 | 247 | ||
248 | static int gfs2_get_flags(struct file *filp, u32 __user *ptr) | 248 | static int gfs2_get_flags(struct file *filp, u32 __user *ptr) |
249 | { | 249 | { |
250 | struct inode *inode = filp->f_dentry->d_inode; | 250 | struct inode *inode = filp->f_path.dentry->d_inode; |
251 | struct gfs2_inode *ip = GFS2_I(inode); | 251 | struct gfs2_inode *ip = GFS2_I(inode); |
252 | struct gfs2_holder gh; | 252 | struct gfs2_holder gh; |
253 | int error; | 253 | int error; |
@@ -305,7 +305,7 @@ void gfs2_set_inode_flags(struct inode *inode) | |||
305 | */ | 305 | */ |
306 | static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask) | 306 | static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask) |
307 | { | 307 | { |
308 | struct inode *inode = filp->f_dentry->d_inode; | 308 | struct inode *inode = filp->f_path.dentry->d_inode; |
309 | struct gfs2_inode *ip = GFS2_I(inode); | 309 | struct gfs2_inode *ip = GFS2_I(inode); |
310 | struct gfs2_sbd *sdp = GFS2_SB(inode); | 310 | struct gfs2_sbd *sdp = GFS2_SB(inode); |
311 | struct buffer_head *bh; | 311 | struct buffer_head *bh; |
@@ -588,7 +588,7 @@ static int do_flock(struct file *file, int cmd, struct file_lock *fl) | |||
588 | { | 588 | { |
589 | struct gfs2_file *fp = file->private_data; | 589 | struct gfs2_file *fp = file->private_data; |
590 | struct gfs2_holder *fl_gh = &fp->f_fl_gh; | 590 | struct gfs2_holder *fl_gh = &fp->f_fl_gh; |
591 | struct gfs2_inode *ip = GFS2_I(file->f_dentry->d_inode); | 591 | struct gfs2_inode *ip = GFS2_I(file->f_path.dentry->d_inode); |
592 | struct gfs2_glock *gl; | 592 | struct gfs2_glock *gl; |
593 | unsigned int state; | 593 | unsigned int state; |
594 | int flags; | 594 | int flags; |