aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:38:30 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-30 09:38:30 -0400
commit5e2b0613ed9f9641937dd5948051631249447c57 (patch)
tree2bccd88b4303e7917824cef45aabbe43cd0d93c2 /fs/gfs2/glock.c
parent8fb4b536e7b9dbaf7a6b8204e887b92a14e4352c (diff)
[GFS2] Remove unused code from glock layer
Remove the unused sync feature from glocks. This is currently done by calling the required functions to sync pages/blocks directly so this code isn't needed. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c8
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);