]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: refactor xfs_mount_zones
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Mar 2026 15:26:05 +0000 (17:26 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 7 Apr 2026 11:16:59 +0000 (13:16 +0200)
commit02367990bdcbeabb0ffd3e8e227e5f79a04186fc
tree6c9ea155048623e415d61652edbfd29484ccf3ec
parent553a13e2076d64774910d597977a17022625763d
xfs: refactor xfs_mount_zones

xfs_mount_zones has grown a bit too big and unorganized.  Split the
zone reporting loop into a separate helper, hiding the rtg variable
there.  Print the mount message last, and also keep the VFS writeback
chunk size last instead of in the middle of the logic to calculate
the free/available blocks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_alloc.c