From: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
To: Carlos Maiolino <cem@kernel.org>,
linux-xfs@vger.kernel.org (open list:XFS FILESYSTEM),
linux-kernel@vger.kernel.org (open list)
Cc: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
Subject: [PATCH] xfs: replace kvmalloc_array with kvzalloc_objs
Date: Thu, 17 Sep 2026 20:08:35 +0000 [thread overview]
Message-ID: <20260917200835.31027-1-lalitshankarch@gmail.com> (raw)
Replace kvmalloc_array() with the more concise kvzalloc_objs()
implementation.
Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
---
fs/xfs/xfs_zone_alloc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c
index 28c1e48909fa..82615045aa4c 100644
--- a/fs/xfs/xfs_zone_alloc.c
+++ b/fs/xfs/xfs_zone_alloc.c
@@ -1238,8 +1238,7 @@ static unsigned long *
xfs_alloc_bucket_bitmap(
struct xfs_mount *mp)
{
- return kvmalloc_array(BITS_TO_LONGS(mp->m_sb.sb_rgcount),
- sizeof(unsigned long), GFP_KERNEL | __GFP_ZERO);
+ return kvzalloc_objs(unsigned long, BITS_TO_LONGS(mp->m_sb.sb_rgcount));
}
static struct xfs_zone_info *
--
2.53.0
next reply other threads:[~2026-09-17 20:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 20:08 Lalit Shankar Chowdhury [this message]
2026-09-18 5:16 ` Carlos Maiolino
2026-09-18 11:16 ` Christoph Hellwig
2026-09-18 11:32 ` Carlos Maiolino
2026-09-18 11:44 ` Carlos Maiolino
2026-09-18 13:51 ` Christoph Hellwig
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=20260917200835.31027-1-lalitshankarch@gmail.com \
--to=lalitshankarch@gmail.com \
--cc=cem@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.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 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®