Files
linux/fs/xfs/scrub
Christoph Hellwig 9b64ca202f xfs: store an agbno in struct xfs_imap
The xfs_imap structure is embedded into the xfs_inode, which means the
size of it directly affects the inode size.  Replacing the xfs_daddr_t
with an xfs_agbno_t and taking the AG information from other easily
available sources allows us to shrink the structure including the
typical padding from 16 bytes to 8 bytes.

As a side-effect the debugging check in xfs_imap() naturally now
converges to a stricter variant that checks that the cluster is located
inside a single AG, and not just inside the entire device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
2026-06-09 09:14:42 +02:00
..
2026-01-21 12:57:16 +01:00
2024-04-15 14:58:53 -07:00
2026-06-09 09:14:41 +02:00
2026-01-21 12:57:16 +01:00
2026-06-09 09:14:41 +02:00
2024-04-23 07:47:02 -07:00
2026-06-09 09:14:41 +02:00
2024-12-23 13:06:17 -08:00
2026-01-21 12:57:16 +01:00
2026-06-09 09:14:41 +02:00
2025-01-13 14:57:08 +01:00
2026-01-21 12:57:16 +01:00
2026-06-09 09:14:41 +02:00
2026-06-09 09:14:42 +02:00
2026-01-21 12:57:16 +01:00
2024-04-15 14:58:55 -07:00
2024-04-15 14:58:53 -07:00
2024-04-23 16:55:18 -07:00