]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove redundant bufferspace discard in truncate
authorPere Diaz Bou <pere-altea@hotmail.com>
Tue, 2 Apr 2024 15:01:43 +0000 (17:01 +0200)
committerPere Diaz Bou <pere-altea@hotmail.com>
Thu, 25 Apr 2024 13:56:20 +0000 (15:56 +0200)
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
src/os/bluestore/BlueStore.cc

index a2d1607aec910b69f7764926a1f9be5c6583339d..1023f8ec5635afc32c603294ce3349b02a66ccf1 100644 (file)
@@ -16829,7 +16829,6 @@ void BlueStore::_do_truncate(
     o->bc.discard(o->c->cache, offset, length);
     o->extent_map.fault_range(db, offset, length);
     o->extent_map.punch_hole(c, offset, length, &wctx.old_extents);
-    o->bc.discard(o->c->cache, offset, length);
     o->extent_map.dirty_range(offset, length);
 
     _wctx_finish(txc, c, o, &wctx, maybe_unshared_blobs);