File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ struct gfs2_bufdata {
165
165
u64 bd_blkno ;
166
166
167
167
struct list_head bd_list ;
168
- const struct gfs2_log_operations * bd_ops ;
169
168
170
169
struct gfs2_trans * bd_tr ;
171
170
struct list_head bd_ail_st_list ;
Original file line number Diff line number Diff line change @@ -605,7 +605,6 @@ void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd)
605
605
bd -> bd_blkno = bh -> b_blocknr ;
606
606
gfs2_remove_from_ail (bd ); /* drops ref on bh */
607
607
bd -> bd_bh = NULL ;
608
- bd -> bd_ops = & gfs2_revoke_lops ;
609
608
sdp -> sd_log_num_revoke ++ ;
610
609
atomic_inc (& gl -> gl_revokes );
611
610
set_bit (GLF_LFLUSH , & gl -> gl_flags );
Original file line number Diff line number Diff line change @@ -124,15 +124,13 @@ void gfs2_trans_end(struct gfs2_sbd *sdp)
124
124
}
125
125
126
126
static struct gfs2_bufdata * gfs2_alloc_bufdata (struct gfs2_glock * gl ,
127
- struct buffer_head * bh ,
128
- const struct gfs2_log_operations * lops )
127
+ struct buffer_head * bh )
129
128
{
130
129
struct gfs2_bufdata * bd ;
131
130
132
131
bd = kmem_cache_zalloc (gfs2_bufdata_cachep , GFP_NOFS | __GFP_NOFAIL );
133
132
bd -> bd_bh = bh ;
134
133
bd -> bd_gl = gl ;
135
- bd -> bd_ops = lops ;
136
134
INIT_LIST_HEAD (& bd -> bd_list );
137
135
bh -> b_private = bd ;
138
136
return bd ;
@@ -169,7 +167,7 @@ void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh)
169
167
gfs2_log_unlock (sdp );
170
168
unlock_buffer (bh );
171
169
if (bh -> b_private == NULL )
172
- bd = gfs2_alloc_bufdata (gl , bh , & gfs2_databuf_lops );
170
+ bd = gfs2_alloc_bufdata (gl , bh );
173
171
else
174
172
bd = bh -> b_private ;
175
173
lock_buffer (bh );
@@ -210,7 +208,7 @@ void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh)
210
208
unlock_buffer (bh );
211
209
lock_page (bh -> b_page );
212
210
if (bh -> b_private == NULL )
213
- bd = gfs2_alloc_bufdata (gl , bh , & gfs2_buf_lops );
211
+ bd = gfs2_alloc_bufdata (gl , bh );
214
212
else
215
213
bd = bh -> b_private ;
216
214
unlock_page (bh -> b_page );
You can’t perform that action at this time.
0 commit comments