out_truncate:
gfs2_log_flush(sdp, ip->i_gl);
write_inode_now(inode, 1);
- gfs2_ail_flush(ip->i_gl);
+ gfs2_ail_flush(ip->i_gl, 0);
/* Case 2 starts here */
error = gfs2_trans_begin(sdp, 0, sdp->sd_jdesc->jd_blocks);
if (ip) {
ip->i_flags = 0;
ip->i_gl = NULL;
+ ip->i_rgd = NULL;
}
return &ip->i_inode;
}