From: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
To: Phillip Lougher <phillip@squashfs.org.uk>,
linux-kernel@vger.kernel.org (open list)
Cc: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
Subject: [PATCH] squashfs: replace kmalloc_array with kmalloc_objs
Date: Fri, 11 Sep 2026 17:30:08 +0000 [thread overview]
Message-ID: <20260911173009.57716-1-lalitshankarch@gmail.com> (raw)
Replace the remaining kmalloc_array instances with kmalloc_objs.
Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
---
fs/squashfs/file.c | 2 +-
fs/squashfs/file_direct.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/squashfs/file.c b/fs/squashfs/file.c
index d83594ce91d2..8cfedc766256 100644
--- a/fs/squashfs/file.c
+++ b/fs/squashfs/file.c
@@ -588,7 +588,7 @@ static void squashfs_readahead(struct readahead_control *ractl)
readahead_expand(ractl, start, (len | mask) + 1);
- pages = kmalloc_array(max_pages, sizeof(void *), GFP_KERNEL);
+ pages = kmalloc_objs(*pages, max_pages);
if (!pages)
return;
diff --git a/fs/squashfs/file_direct.c b/fs/squashfs/file_direct.c
index 2c3e809d6891..ca1af243f064 100644
--- a/fs/squashfs/file_direct.c
+++ b/fs/squashfs/file_direct.c
@@ -40,7 +40,7 @@ int squashfs_readpage_block(struct folio *folio, u64 block, int bsize,
pages = end_index - start_index + 1;
- page = kmalloc_array(pages, sizeof(void *), GFP_KERNEL);
+ page = kmalloc_objs(*page, pages);
if (page == NULL)
return res;
--
2.53.0
reply other threads:[~2026-09-11 17:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260911173009.57716-1-lalitshankarch@gmail.com \
--to=lalitshankarch@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=phillip@squashfs.org.uk \
/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®