diff options
Diffstat (limited to 'fs/gfs2/ops_file.c')
| -rw-r--r-- | fs/gfs2/ops_file.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index e9a366d4411c..3a747f8e2188 100644 --- a/fs/gfs2/ops_file.c +++ b/fs/gfs2/ops_file.c | |||
| @@ -89,8 +89,8 @@ static int gfs2_readdir(struct file *file, void *dirent, filldir_t filldir) | |||
| 89 | u64 offset = file->f_pos; | 89 | u64 offset = file->f_pos; |
| 90 | int error; | 90 | int error; |
| 91 | 91 | ||
| 92 | gfs2_holder_init(dip->i_gl, LM_ST_SHARED, GL_ATIME, &d_gh); | 92 | gfs2_holder_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); |
| 93 | error = gfs2_glock_nq_atime(&d_gh); | 93 | error = gfs2_glock_nq(&d_gh); |
| 94 | if (error) { | 94 | if (error) { |
| 95 | gfs2_holder_uninit(&d_gh); | 95 | gfs2_holder_uninit(&d_gh); |
| 96 | return error; | 96 | return error; |
| @@ -153,8 +153,8 @@ static int gfs2_get_flags(struct file *filp, u32 __user *ptr) | |||
| 153 | int error; | 153 | int error; |
| 154 | u32 fsflags; | 154 | u32 fsflags; |
| 155 | 155 | ||
| 156 | gfs2_holder_init(ip->i_gl, LM_ST_SHARED, GL_ATIME, &gh); | 156 | gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); |
| 157 | error = gfs2_glock_nq_atime(&gh); | 157 | error = gfs2_glock_nq(&gh); |
| 158 | if (error) | 158 | if (error) |
| 159 | return error; | 159 | return error; |
| 160 | 160 | ||
| @@ -351,8 +351,8 @@ static int gfs2_page_mkwrite(struct vm_area_struct *vma, struct page *page) | |||
| 351 | struct gfs2_alloc *al; | 351 | struct gfs2_alloc *al; |
| 352 | int ret; | 352 | int ret; |
| 353 | 353 | ||
| 354 | gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_ATIME, &gh); | 354 | gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); |
| 355 | ret = gfs2_glock_nq_atime(&gh); | 355 | ret = gfs2_glock_nq(&gh); |
| 356 | if (ret) | 356 | if (ret) |
| 357 | goto out; | 357 | goto out; |
| 358 | 358 | ||
| @@ -434,8 +434,8 @@ static int gfs2_mmap(struct file *file, struct vm_area_struct *vma) | |||
| 434 | struct gfs2_holder i_gh; | 434 | struct gfs2_holder i_gh; |
| 435 | int error; | 435 | int error; |
| 436 | 436 | ||
| 437 | gfs2_holder_init(ip->i_gl, LM_ST_SHARED, GL_ATIME, &i_gh); | 437 | gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &i_gh); |
| 438 | error = gfs2_glock_nq_atime(&i_gh); | 438 | error = gfs2_glock_nq(&i_gh); |
| 439 | if (error) { | 439 | if (error) { |
| 440 | gfs2_holder_uninit(&i_gh); | 440 | gfs2_holder_uninit(&i_gh); |
| 441 | return error; | 441 | return error; |
