intrusive_ptr_release(&*prev);
add_to_dirty(next);
} else if (prev->is_dirty()) {
- assert(prev->dirty_from == next->dirty_from);
+ assert(prev->get_dirty_from() == next->get_dirty_from());
assert(prev->primary_ref_list_hook.is_linked());
auto prev_it = dirty.iterator_to(*prev);
dirty.insert(prev_it, *next);
i != dirty.end() && bytes_so_far < max_bytes;
++i) {
CachedExtentRef cand;
- if (i->dirty_from != journal_seq_t() && i->dirty_from < seq) {
+ if (i->get_dirty_from() != journal_seq_t() && i->get_dirty_from() < seq) {
logger().debug(
"Cache::get_next_dirty_extents: next {}",
*i);
- if (!(ret.empty() || ret.back()->dirty_from <= i->dirty_from)) {
+ if (!(ret.empty() ||
+ ret.back()->get_dirty_from() <= i->get_dirty_from())) {
logger().debug(
"Cache::get_next_dirty_extents: last {}, next {}",
*ret.back(),
*i);
}
- assert(ret.empty() || ret.back()->dirty_from <= i->dirty_from);
+ assert(ret.empty() || ret.back()->get_dirty_from() <= i->get_dirty_from());
bytes_so_far += i->get_length();
ret.push_back(&*i);
} else {
return out;
}
- /// returns extents with dirty_from < seq
+ /// returns extents with get_dirty_from() < seq
using get_next_dirty_extents_ertr = crimson::errorator<>;
using get_next_dirty_extents_ret = get_next_dirty_extents_ertr::future<
std::vector<CachedExtentRef>>;
journal_seq_t seq,
size_t max_bytes);
- /// returns std::nullopt if no dirty extents or dirty_from for oldest
+ /// returns std::nullopt if no dirty extents or get_dirty_from() for oldest
std::optional<journal_seq_t> get_oldest_dirty_from() const {
if (dirty.empty()) {
return std::nullopt;
} else {
- auto oldest = dirty.begin()->dirty_from;
+ auto oldest = dirty.begin()->get_dirty_from();
if (oldest == journal_seq_t()) {
return std::nullopt;
} else {
/**
* dirty
*
- * holds refs to dirty extents. Ordered by CachedExtent::dirty_from.
+ * holds refs to dirty extents. Ordered by CachedExtent::get_dirty_from().
*/
CachedExtent::list dirty;