Re: [PATCH v2 1/2] PM: hibernate: fix spelling mistake for annotation

From: TGSP
Date: Fri Nov 04 2022 - 05:48:13 EST


在 2022/11/4 17:18, Greg KH 写道:
On Fri, Nov 04, 2022 at 01:41:18PM +0800, TGSP wrote:
From: xiongxin <xiongxin@xxxxxxxxxx>

The actual calculation formula in the code below is:

max_size = (count - (size + PAGES_FOR_IO)) / 2
- 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE);

But function comments are written differently, the comment is wrong?

By the way, what exactly do the "/ 2" and "2 *" mean?

Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: xiongxin <xiongxin@xxxxxxxxxx>

Please do not use an anonymous gmail account for your corporate work
like this. Work with your company email admins to allow you to send
patches from that address so that they can be verified to actually come
from there.

thanks,

greg k-h

I also wanted to send it directly through the company mailbox, but those leaders didn't take it seriously.

Next time I don't use the company email and submit patches as I can as a freelancer.