diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index b1b947d005ce..ae6aa9db5eb2 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -1426,7 +1426,8 @@ void ceph_process_folio_batch(struct address_space *mapping, break; } - fsc->write_congested = is_write_congestion_happened(fsc); + if (is_write_congestion_happened(fsc)) + fsc->write_congested = true; ceph_wbc->fbatch.folios[i] = NULL; ceph_wbc->len += folio_size(folio);