We do not release extents until after any deferred IO, so this flush() is
unnecessary.
Signed-off-by: Sage Weil <sage@redhat.com>
# Conflicts:
# src/os/bluestore/BlueStore.cc
_dump_onode(o);
- // ensure any deferred IO has completed before we truncate off any extents
- // they may touch.
- o->flush();
-
WriteContext wctx;
o->extent_map.fault_range(db, offset, length);
o->extent_map.punch_hole(offset, length, &wctx.old_extents);
return 0;
if (offset < o->onode.size) {
- // ensure any deferred IO has completed before we truncate off any extents
- // they may touch.
- o->flush();
-
WriteContext wctx;
uint64_t length = o->onode.size - offset;
o->extent_map.fault_range(db, offset, length);