Re: [PATCH v2 1/2] printk_ringbuffer: don't needlessly wrap data blocks around

Petr Mladek
2025-10-22T12:46:40Z

On Fri 2025-09-05 17:41:51, Daniil Tatianin wrote:
> Previously, data blocks that perfectly fit the data ring buffer would
> get wrapped around to the beginning for no reason since the calculated
> offset of the next data block would belong to the next wrap. Since this
> offset is not actually part of the data block, but rather the offset of
> where the next data block is going to start, there is no reason to
> include it when deciding whether the current block fits the buffer.
>
> Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>

JFYI, the patch has been comitted into printk/linux.git,
branch for-6.19.

I have updated the indentation as proposed by John.

Best Regards,
Petr