_wctx_finish callers always write the onode; we only need to worry about
our changes to the bnode.
Signed-off-by: Sage Weil <sage@redhat.com>
} else {
dout(20) << __func__ << " keep blob " << *b << dendl;
}
- if (l.blob >= 0) {
- txc->write_onode(o);
- } else {
+ if (l.blob < 0) {
txc->write_bnode(o->bnode);
}
}
}
_wctx_finish(txc, c, o, &wctx);
+ txc->write_onode(o);
if (end > o->onode.size) {
dout(20) << __func__ << " extending size to 0x" << std::hex << end