From: TGSP <tgsp002@gmail.com>
To: rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz,
huanglei@kylinos.cn
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
TGSP <tgsp002@gmail.com>
Subject: [PATCH v2 0/2] Fixes to the hibernate_preallocate_memory()
Date: Fri, 4 Nov 2022 13:41:17 +0800 [thread overview]
Message-ID: <20221104054119.1946073-1-tgsp002@gmail.com> (raw)
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
next reply other threads:[~2022-11-04 5:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 5:41 TGSP [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221104054119.1946073-1-tgsp002@gmail.com \
--to=tgsp002@gmail.com \
--cc=huanglei@kylinos.cn \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.