aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 9084d6037a0c..0817f6ede188 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1606,9 +1606,8 @@ int gfs2_glock_nq_atime(struct gfs2_holder *gh)
1606 curtime = get_seconds(); 1606 curtime = get_seconds();
1607 if (curtime - ip->i_di.di_atime >= quantum) { 1607 if (curtime - ip->i_di.di_atime >= quantum) {
1608 gfs2_glock_dq(gh); 1608 gfs2_glock_dq(gh);
1609 gfs2_holder_reinit(LM_ST_EXCLUSIVE, 1609 gfs2_holder_reinit(LM_ST_EXCLUSIVE, gh->gh_flags & ~LM_FLAG_ANY,
1610 gh->gh_flags & ~LM_FLAG_ANY, 1610 gh);
1611 gh);
1612 error = gfs2_glock_nq(gh); 1611 error = gfs2_glock_nq(gh);
1613 if (error) 1612 if (error)
1614 return error; 1613 return error;