xfs: fully decouple XFS_IBULK* flags from XFS_IWALK* flags
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jul 2025 12:19:44 +0000 (14:19 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 11 Aug 2025 12:03:19 +0000 (14:03 +0200)
commitd2845519b0723c5d5a0266cbf410495f9b8fd65c
tree413dec307eeabe95df0258ff7d14cce27b340d70
parent647b3d59c768d7638dd17c78c8044178364383ca
xfs: fully decouple XFS_IBULK* flags from XFS_IWALK* flags

Fix up xfs_inumbers to now pass in the XFS_IBULK* flags into the flags
argument to xfs_inobt_walk, which expects the XFS_IWALK* flags.

Currently passing the wrong flags works for non-debug builds because
the only XFS_IWALK* flag has the same encoding as the corresponding
XFS_IBULK* flag, but in debug builds it can trigger an assert that no
incorrect flag is passed.  Instead just extra the relevant flag.

Fixes: 5b35d922c52798 ("xfs: Decouple XFS_IBULK flags from XFS_IWALK flags")
Cc: <stable@vger.kernel.org> # v5.19
Reported-by: cen zhang <zzzccc427@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_itable.c