diff options
Diffstat (limited to 'fs/gfs2/trans.c')
-rw-r--r-- | fs/gfs2/trans.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index b014591fa4a4..104e664fa182 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c | |||
@@ -154,14 +154,13 @@ void gfs2_trans_add_bh(struct gfs2_glock *gl, struct buffer_head *bh, int meta) | |||
154 | gfs2_attach_bufdata(gl, bh, meta); | 154 | gfs2_attach_bufdata(gl, bh, meta); |
155 | bd = get_v2bd(bh); | 155 | bd = get_v2bd(bh); |
156 | } | 156 | } |
157 | |||
158 | lops_add(sdp, &bd->bd_le); | 157 | lops_add(sdp, &bd->bd_le); |
159 | } | 158 | } |
160 | 159 | ||
161 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, uint64_t blkno) | 160 | void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, uint64_t blkno) |
162 | { | 161 | { |
163 | struct gfs2_revoke *rv = kmalloc(sizeof(struct gfs2_revoke), | 162 | struct gfs2_revoke *rv = kmalloc(sizeof(struct gfs2_revoke), |
164 | GFP_KERNEL | __GFP_NOFAIL); | 163 | GFP_NOFS | __GFP_NOFAIL); |
165 | lops_init_le(&rv->rv_le, &gfs2_revoke_lops); | 164 | lops_init_le(&rv->rv_le, &gfs2_revoke_lops); |
166 | rv->rv_blkno = blkno; | 165 | rv->rv_blkno = blkno; |
167 | lops_add(sdp, &rv->rv_le); | 166 | lops_add(sdp, &rv->rv_le); |
@@ -197,19 +196,3 @@ void gfs2_trans_add_rg(struct gfs2_rgrpd *rgd) | |||
197 | lops_add(rgd->rd_sbd, &rgd->rd_le); | 196 | lops_add(rgd->rd_sbd, &rgd->rd_le); |
198 | } | 197 | } |
199 | 198 | ||
200 | void gfs2_trans_add_databuf(struct gfs2_sbd *sdp, struct buffer_head *bh) | ||
201 | { | ||
202 | struct gfs2_bufdata *bd; | ||
203 | |||
204 | bd = get_v2bd(bh); | ||
205 | if (!bd) { | ||
206 | bd = kmalloc(sizeof(struct gfs2_bufdata), | ||
207 | GFP_NOFS | __GFP_NOFAIL); | ||
208 | lops_init_le(&bd->bd_le, &gfs2_databuf_lops); | ||
209 | get_bh(bh); | ||
210 | bd->bd_bh = bh; | ||
211 | set_v2bd(bh, bd); | ||
212 | lops_add(sdp, &bd->bd_le); | ||
213 | } | ||
214 | } | ||
215 | |||