RE: [PATCH v3] zram: Fix the issue that the write - back limits might overflow
From: Yuwen Chen
Date: Tue Nov 18 2025 - 23:09:44 EST
On Wed, 19 Nov 2025 12:01:57 +0800, Yuwen Chen wrote:
> + /*
> + * When the page size is greater than 4KB, if bd_wb_limit is set to
> + * a value that is not page - size aligned, it will cause value
> + * wrapping. For example, when the page size is set to 16KB and
> + * bd_wb_limit is set to 3, a single write - back operation will
> + * cause bd_wb_limit to become -1. Even more terrifying is that
> + * bd_wb_limit is an unsigned number.
> + */
Sorry, I forgot to check the code format here.