CVE-2026-139197: ceph: fix writeback_count leak when a bounce page allocation fails
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix writebackcount leak when a bounce page allocation fails
cephprocessfoliobatch() calls iswritecongestionhappened(), which increments fsc->writebackcount, before calling movedirtyfolioinpagearray(). If the fscrypt bounce page allocation there fails, the folio is redirtied and never makes it into the page array, but the count is never dropped.
writecongested is only cleared when a decrement falls below CONGESTIONOFFTHRESH, so the leaked counts set congestion early and eventually leave writecongested set for good. Every WBSYNCNONE writeback then returns 0 and background writeback stops entirely.
Bump the count only once the folio is in the page array.