]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: mark the record passed into xchk_btree functions as const
authorDarrick J. Wong <djwong@kernel.org>
Mon, 31 Jan 2022 20:25:48 +0000 (15:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jan 2022 20:25:48 +0000 (15:25 -0500)
commitcd5f520dda399cbb3ce57f2fa835982fe48166fb
tree6d2e00bc355ea3e41ab8f715699470780dcda13c
parent141bbc5ca0aa04ffd7526f29c52df223fa63458f
xfs: mark the record passed into xchk_btree functions as const

Source kernel commit: 22ece4e836beff1df528ee09cf21ca5fab7235f5

xchk_btree calls a user-supplied function to validate each btree record
that it finds.  Those functions are not supposed to change the record
data, so mark the parameter const.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_arch.h
libxfs/xfs_bmap_btree.c
libxfs/xfs_bmap_btree.h