All of lore.kernel.org
 help / color / mirror / Atom feed
* fix dblocks adjustment in growfs
@ 2026-06-01 11:07 Christoph Hellwig
  2026-06-01 11:07 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig
  2026-06-01 11:07 ` [PATCH 2/2] xfs: cleanup xfs_growfs_compute_deltas Christoph Hellwig
  0 siblings, 2 replies; 9+ messages in thread
From: Christoph Hellwig @ 2026-06-01 11:07 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: Nirjhar Roy, linux-xfs

Hi all,

the first patch fixes a possible incorrect sb_dblocks when growfs gits
the maximum agcount or a too small AG.  The second then cleans up the
surrounding code to be better readable.

Btw, is there any reason to have this code in xfs_ag.c?  It is only used
by growfs and not at all in userspace, so having it in xfs_fsops.c would
seem more natural.

Diffstat:
 libxfs/xfs_ag.c |   44 +++++++++++++++++++++-----------------------
 libxfs/xfs_ag.h |    5 ++---
 xfs_fsops.c     |    4 +++-
 3 files changed, 26 insertions(+), 27 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* fix dblocks adjustment in growfs v2
@ 2026-06-08  5:01 Christoph Hellwig
  2026-06-08  5:01 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hellwig @ 2026-06-08  5:01 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: Nirjhar Roy, Darrick J . Wong, linux-xfs

Hi all,

the first patch fixes a possible incorrect sb_dblocks when growfs gits
the maximum agcount or a too small AG.  The second then cleans up the
surrounding code to be better readable.

Btw, is there any reason to have this code in xfs_ag.c?  It is only used
by growfs and not at all in userspace, so having it in xfs_fsops.c would
seem more natural.

Changes since v1:
 - clarify what we wrong in the commit log for patch 1
 - use a 64-bit agno variable in patch 2 to deal with 32-bit overflows

Diffstat:
 libxfs/xfs_ag.c |   44 +++++++++++++++++++++-----------------------
 libxfs/xfs_ag.h |    5 ++---
 xfs_fsops.c     |    4 +++-
 3 files changed, 26 insertions(+), 27 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* fix dblocks adjustment in growfs v3
@ 2026-06-09  7:52 Christoph Hellwig
  2026-06-09  7:52 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Hellwig @ 2026-06-09  7:52 UTC (permalink / raw)
  To: Carlos Maiolino; +Cc: Nirjhar Roy, Darrick J . Wong, linux-xfs

Hi all,

the first patch fixes a possible incorrect sb_dblocks when growfs gits
the maximum agcount or a too small AG.  The second then cleans up the
surrounding code to be better readable.

Btw, is there any reason to have this code in xfs_ag.c?  It is only used
by growfs and not at all in userspace, so having it in xfs_fsops.c would
seem more natural.

Changes since v2:
 - another too large overflow fix
 - spelling fixes

Changes since v1:
 - clarify what we wrong in the commit log for patch 1
 - use a 64-bit agno variable in patch 2 to deal with 32-bit overflows

Diffstat:
 libxfs/xfs_ag.c |   44 +++++++++++++++++++++-----------------------
 libxfs/xfs_ag.h |    5 ++---
 xfs_fsops.c     |    4 +++-
 3 files changed, 26 insertions(+), 27 deletions(-)

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

end of thread, other threads:[~2026-06-09  7:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 11:07 fix dblocks adjustment in growfs Christoph Hellwig
2026-06-01 11:07 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig
2026-06-02  4:36   ` Darrick J. Wong
2026-06-02  5:34     ` Christoph Hellwig
2026-06-01 11:07 ` [PATCH 2/2] xfs: cleanup xfs_growfs_compute_deltas Christoph Hellwig
2026-06-02  4:42   ` Darrick J. Wong
2026-06-02  5:37     ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2026-06-08  5:01 fix dblocks adjustment in growfs v2 Christoph Hellwig
2026-06-08  5:01 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig
2026-06-09  7:52 fix dblocks adjustment in growfs v3 Christoph Hellwig
2026-06-09  7:52 ` [PATCH 1/2] xfs: pass back updated nb from xfs_growfs_compute_deltas Christoph Hellwig

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.