From: Sage Weil Date: Tue, 21 Jun 2016 14:15:12 +0000 (-0400) Subject: os/bluestore: drop unneeded conditional in LRUCache trim X-Git-Tag: v11.0.0~70^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c6bdb0e213df7875b1b88599b865378dbd6106a;p=ceph.git os/bluestore: drop unneeded conditional in LRUCache trim Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index c0f451bce05ff..784432a4d68b3 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -528,8 +528,7 @@ void BlueStore::LRUCache::trim(uint64_t onode_max, uint64_t buffer_max) return; // don't even try auto p = onode_lru.end(); - if (num) - --p; + --p; while (num > 0) { Onode *o = &*p; int refs = o->nref.load();