xlog_set_state
xlog_set_state(log, *head_blk, rhead, rhead_blk, wrapped);
xlog_set_state(log, *head_blk, rhead, rhead_blk,