if (error)
goto fail;
- gfs2_trans_add_bh(ip->i_gl, dibh);
+ gfs2_trans_add_bh(ip->i_gl, dibh, 1);
kaddr = kmap(page);
memcpy(dibh->b_data + sizeof(struct gfs2_dinode) + from,
static void discard_buffer(struct gfs2_sbd *sdp, struct buffer_head *bh)
{
- struct gfs2_databuf *db;
+ struct gfs2_bufdata *bd;
gfs2_log_lock(sdp);
- db = get_v2db(bh);
- if (db) {
- db->db_bh = NULL;
- set_v2db(bh, NULL);
+ bd = get_v2bd(bh);
+ if (bd) {
+ bd->bd_bh = NULL;
+ set_v2bd(bh, NULL);
gfs2_log_unlock(sdp);
brelse(bh);
} else