public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fixes to the hibernate_preallocate_memory()
@ 2022-11-04  5:41 TGSP
  2022-11-04  5:41 ` [PATCH v2 1/2] PM: hibernate: fix spelling mistake for annotation TGSP
  2022-11-04  5:41 ` [PATCH v2 2/2] PM: hibernate: add check of preallocate mem for image size pages TGSP
  0 siblings, 2 replies; 7+ messages in thread
From: TGSP @ 2022-11-04  5:41 UTC (permalink / raw)
  To: rafael, len.brown, pavel, huanglei; +Cc: linux-pm, linux-kernel, TGSP

Changes in v2:
- Optimize code to resolve compilation warnings;
- Add comments, add debug data, easy to view and modify.

v1:
hibernate_preallocate_memory() function is still quite obscure, can
anyone add a little more description?

It seems that the max_size calculation formula is wrong in the comment
part, correct it;

It is also found that when mem preallocate is not enough, it goes
directly down without checking.

xiongxin (2):
  PM: hibernate: fix spelling mistake for annotation
  PM: hibernate: add check of preallocate mem for image size pages

 kernel/power/snapshot.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-04  9:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04  5:41 [PATCH v2 0/2] Fixes to the hibernate_preallocate_memory() TGSP
2022-11-04  5:41 ` [PATCH v2 1/2] PM: hibernate: fix spelling mistake for annotation TGSP
2022-11-04  9:18   ` Greg KH
2022-11-04  9:47     ` TGSP
2022-11-04  5:41 ` [PATCH v2 2/2] PM: hibernate: add check of preallocate mem for image size pages TGSP
2022-11-04  6:25   ` Jiri Slaby
2022-11-04  7:27     ` TGSP

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox