BufferHead *obh = *p;
if (obh->ob != bh->ob)
break;
- if (obh->is_dirty() && obh->last_write < cutoff) {
+ if (obh->is_dirty() && obh->last_write <= cutoff) {
blist.push_back(obh);
++count;
total_len += obh->length();
BufferHead *obh = *it;
if (obh->ob != bh->ob)
break;
- if (obh->is_dirty() && obh->last_write < cutoff) {
+ if (obh->is_dirty() && obh->last_write <= cutoff) {
blist.push_front(obh);
++count;
total_len += obh->length();
int max = MAX_FLUSH_UNDER_LOCK;
while ((bh = static_cast<BufferHead*>(bh_lru_dirty.
lru_get_next_expire())) != 0 &&
- bh->last_write < cutoff &&
+ bh->last_write <= cutoff &&
max > 0) {
ldout(cct, 10) << "flusher flushing aged dirty bh " << *bh << dendl;
if (scattered_write) {