Commit 5e2b0613 authored by Steven Whitehouse's avatar Steven Whitehouse

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 8fb4b536
...@@ -1296,9 +1296,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh) ...@@ -1296,9 +1296,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh)
struct gfs2_glock *gl = gh->gh_gl; struct gfs2_glock *gl = gh->gh_gl;
const struct gfs2_glock_operations *glops = gl->gl_ops; const struct gfs2_glock_operations *glops = gl->gl_ops;
if (gh->gh_flags & GL_SYNC)
set_bit(GLF_SYNC, &gl->gl_flags);
if (gh->gh_flags & GL_NOCACHE) if (gh->gh_flags & GL_NOCACHE)
handle_callback(gl, LM_ST_UNLOCKED); handle_callback(gl, LM_ST_UNLOCKED);
...@@ -1313,11 +1310,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh) ...@@ -1313,11 +1310,6 @@ void gfs2_glock_dq(struct gfs2_holder *gh)
if (glops->go_unlock) if (glops->go_unlock)
glops->go_unlock(gh); glops->go_unlock(gh);
if (test_bit(GLF_SYNC, &gl->gl_flags)) {
if (glops->go_sync)
glops->go_sync(gl, DIO_METADATA | DIO_DATA);
}
gl->gl_stamp = jiffies; gl->gl_stamp = jiffies;
spin_lock(&gl->gl_spin); spin_lock(&gl->gl_spin);
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#define GL_SKIP 0x00000100 #define GL_SKIP 0x00000100
#define GL_ATIME 0x00000200 #define GL_ATIME 0x00000200
#define GL_NOCACHE 0x00000400 #define GL_NOCACHE 0x00000400
#define GL_SYNC 0x00000800
#define GL_NOCANCEL 0x00001000 #define GL_NOCANCEL 0x00001000
#define GL_AOP 0x00004000 #define GL_AOP 0x00004000
#define GL_DUMP 0x00008000 #define GL_DUMP 0x00008000
......
...@@ -137,7 +137,6 @@ static void meta_go_sync(struct gfs2_glock *gl, int flags) ...@@ -137,7 +137,6 @@ static void meta_go_sync(struct gfs2_glock *gl, int flags)
gfs2_ail_empty_gl(gl); gfs2_ail_empty_gl(gl);
} }
clear_bit(GLF_SYNC, &gl->gl_flags);
} }
/** /**
...@@ -236,7 +235,6 @@ static void inode_go_sync(struct gfs2_glock *gl, int flags) ...@@ -236,7 +235,6 @@ static void inode_go_sync(struct gfs2_glock *gl, int flags)
gfs2_ail_empty_gl(gl); gfs2_ail_empty_gl(gl);
} }
clear_bit(GLF_SYNC, &gl->gl_flags);
} }
/** /**
......
...@@ -167,7 +167,6 @@ enum { ...@@ -167,7 +167,6 @@ enum {
GLF_LOCK = 1, GLF_LOCK = 1,
GLF_STICKY = 2, GLF_STICKY = 2,
GLF_PREFETCH = 3, GLF_PREFETCH = 3,
GLF_SYNC = 4,
GLF_DIRTY = 5, GLF_DIRTY = 5,
GLF_SKIP_WAITERS2 = 6, GLF_SKIP_WAITERS2 = 6,
GLF_GREEDY = 7, GLF_GREEDY = 7,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment