diff options
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 709e6e0914fd..c3dde8560827 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1296,9 +1296,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh) | |||
1296 | struct gfs2_glock *gl = gh->gh_gl; | 1296 | struct gfs2_glock *gl = gh->gh_gl; |
1297 | const struct gfs2_glock_operations *glops = gl->gl_ops; | 1297 | const struct gfs2_glock_operations *glops = gl->gl_ops; |
1298 | 1298 | ||
1299 | if (gh->gh_flags & GL_SYNC) | ||
1300 | set_bit(GLF_SYNC, &gl->gl_flags); | ||
1301 | |||
1302 | if (gh->gh_flags & GL_NOCACHE) | 1299 | if (gh->gh_flags & GL_NOCACHE) |
1303 | handle_callback(gl, LM_ST_UNLOCKED); | 1300 | handle_callback(gl, LM_ST_UNLOCKED); |
1304 | 1301 | ||
@@ -1313,11 +1310,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh) | |||
1313 | if (glops->go_unlock) | 1310 | if (glops->go_unlock) |
1314 | glops->go_unlock(gh); | 1311 | glops->go_unlock(gh); |
1315 | 1312 | ||
1316 | if (test_bit(GLF_SYNC, &gl->gl_flags)) { | ||
1317 | if (glops->go_sync) | ||
1318 | glops->go_sync(gl, DIO_METADATA | DIO_DATA); | ||
1319 | } | ||
1320 | |||
1321 | gl->gl_stamp = jiffies; | 1313 | gl->gl_stamp = jiffies; |
1322 | 1314 | ||
1323 | spin_lock(&gl->gl_spin); | 1315 | spin_lock(&gl->gl_spin); |