os/bluestore: clean up Cache::trim

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-06-10 09:06:52 -04:00
parent 94648e2bd5
commit b55255d23e

View File

@ -480,13 +480,11 @@ void BlueStore::Cache::trim(uint64_t onode_max, uint64_t buffer_max)
}
dout(20) << __func__ << " rm " << *b << dendl;
b->space->_rm_buffer(p);
} if (i != buffer_lru.begin()) {
--i;
continue;
} else {
if (i != buffer_lru.begin()) {
--i;
continue;
} else {
break;
}
break;
}
}