Re: [PATCH v2] ceph: fix writeback_count leak in write_folio_nounlock()

From: Markus Elfring

Date: Tue Jun 02 2026 - 14:30:49 EST



> Add atomic_long_dec() calls on all error paths that currently return

atomic_long_dec_return()?


> without decrementing the counter.

Can any duplicate source code be avoided in affected if branches
of the function implementation “write_folio_nounlock”?
https://elixir.bootlin.com/linux/v7.1-rc6/source/fs/ceph/addr.c#L717-L874

Regards,
Markus