From: Zhenguo Zhao <zhenguo6858@gmail.com>
To: nianfu.bai@unisoc.com, keescook@chromium.org, anton@enomsg.org,
ccross@android.com, tony.luck@intel.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] pstore/zone: Remove redundant check for total size
Date: Fri, 24 Sep 2021 16:59:20 +0800 [thread overview]
Message-ID: <1632473962-29686-1-git-send-email-zhenguo6858@gmail.com> (raw)
From: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>
The macro check_size contains 4096 size check for total size.
check_size(total_size, 4096)
Signed-off-by: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>
---
fs/pstore/zone.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c
index 7c8f8fe..93a770c 100644
--- a/fs/pstore/zone.c
+++ b/fs/pstore/zone.c
@@ -1295,10 +1295,6 @@ int register_pstore_zone(struct pstore_zone_info *info)
int err = -EINVAL;
struct psz_context *cxt = &pstore_zone_cxt;
- if (info->total_size < 4096) {
- pr_warn("total_size must be >= 4096\n");
- return -EINVAL;
- }
if (info->total_size > SZ_128M) {
pr_warn("capping size to 128MiB\n");
info->total_size = SZ_128M;
--
1.9.1
next reply other threads:[~2021-09-24 9:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-24 8:59 Zhenguo Zhao [this message]
2021-09-24 8:59 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
2021-09-24 8:59 ` [PATCH 3/3] pstore: Modify kconfig to align text Zhenguo Zhao
-- strict thread matches above, loose matches on Subject: below --
2021-10-29 6:51 [PATCH 1/3] pstore/zone: Remove redundant check for total size Zhenguo Zhao
2021-09-03 11:27 Zhenguo Zhao
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=1632473962-29686-1-git-send-email-zhenguo6858@gmail.com \
--to=zhenguo6858@gmail.com \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nianfu.bai@unisoc.com \
--cc=tony.luck@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®