From: Radoslaw Zarzynski Date: Mon, 15 Mar 2021 19:32:10 +0000 (+0000) Subject: crimson/osd: drop ObjectContext::loaded as it's never read. X-Git-Tag: v17.1.0~2395^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ef7194c684232ce16b01ce330cb52b3d71eb232;p=ceph.git crimson/osd: drop ObjectContext::loaded as it's never read. The `PG::with_obc*` machinery uses the `existed` marker provided by the LRU cache subsystem. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/object_context.h b/src/crimson/osd/object_context.h index 251c8796b1dc2..02d04cabe8c06 100644 --- a/src/crimson/osd/object_context.h +++ b/src/crimson/osd/object_context.h @@ -43,14 +43,13 @@ public: Ref head; // Ref defined as part of ceph::common::intrusive_lru_base ObjectState obs; std::optional ss; - bool loaded : 1; // the watch / notify machinery rather stays away from the hot and // frequented paths. std::map is used mostly because of developer's // convenience. using watch_key_t = std::pair; std::map> watchers; - ObjectContext(const hobject_t &hoid) : obs(hoid), loaded(false) {} + ObjectContext(const hobject_t &hoid) : obs(hoid) {} const hobject_t &get_oid() const { return obs.oi.soid; @@ -74,14 +73,12 @@ public: ceph_assert(is_head()); obs = std::move(_obs); ss = std::move(_ss); - loaded = true; } void set_clone_state(ObjectState &&_obs, Ref &&_head) { ceph_assert(!is_head()); obs = std::move(_obs); head = _head; - loaded = true; } /// pass the provided exception to any waiting consumers of this ObjectContext