Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit
1d4abf7e39fbfce674095161bfd002d0b5abece5)
Conflicts:
src/os/bluestore/BlueStore.cc
<no bacport for https://github.com/ceph/ceph/pull/43299>
ceph_assert(num);
--num;
o->clear_cached();
+ dout(20) << __func__ << " " << this << " " << o->oid << " removed"
+ << dendl;
// remove will also decrement nref
o->c->onode_space._remove(o->oid);
}
} else if (o->exists) {
// move onode within LRU
- _rm(o);
- _add(o, 1);
+ lru.erase(lru.iterator_to(*o));
+ lru.push_front(*o);
+ dout(20) << __func__ << " " << this << " " << o->oid << " touched"
+ << dendl;
}
}
ocs->lock.unlock();