mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] xfs: replace kvmalloc_array with kvzalloc_objs
@ 2026-09-17 20:08 Lalit Shankar Chowdhury
  2026-09-18  5:16 ` Carlos Maiolino
  0 siblings, 1 reply; 6+ messages in thread
From: Lalit Shankar Chowdhury @ 2026-09-17 20:08 UTC (permalink / raw)
  To: Carlos Maiolino, open list:XFS FILESYSTEM, open list
  Cc: Lalit Shankar Chowdhury

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


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

end of thread, other threads:[~2026-09-18 13:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 20:08 [PATCH] xfs: replace kvmalloc_array with kvzalloc_objs Lalit Shankar Chowdhury
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

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®