Skip to content

Commit

Permalink
Merge pull request ceph#7895 from majianpeng/bluestore-trim-overlay
Browse files Browse the repository at this point in the history
os/bluestore/BlueStore: Don't leak trim overlay data before write.
  • Loading branch information
liewegas committed Mar 3, 2016
2 parents 2241792 + fcc459c commit 84747dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5538,6 +5538,7 @@ int BlueStore::_do_write(
uint64_t x_off = offset - bp->first;
dout(20) << __func__ << " write " << offset << "~" << length
<< " x_off " << x_off << dendl;
_do_overlay_trim(txc, o, offset, length);
bdev->aio_write(bp->second.offset + x_off, bl, &txc->ioc, buffered);
bp->second.clear_flag(bluestore_extent_t::FLAG_UNWRITTEN);
bp->second.clear_flag(bluestore_extent_t::FLAG_COW_HEAD);
Expand Down

0 comments on commit 84747dc

Please sign in to comment.