]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make the pointer passed to btree set_root functions const
authorDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 22:13:13 +0000 (14:13 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 20 Jan 2022 00:02:49 +0000 (16:02 -0800)
commit59d93f48b3728238480d1cb31de217edd805bab7
tree5e9b16b513e56bf2f0af790a2c20e7cb0ce39291
parent75bec9b35e2c986ca2ae8d4465fc542b104a9b1b
xfs: make the pointer passed to btree set_root functions const

Source kernel commit: b5a6e5fe0e6840bc90e51cf522d6c5a880cde567

The pointer passed to each per-AG btree type's ->set_root function isn't
supposed to be modified (that function sets an external pointer to the
root block) so mark them 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>
libxfs/xfs_alloc_btree.c
libxfs/xfs_btree.h
libxfs/xfs_btree_staging.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_refcount_btree.c
libxfs/xfs_rmap_btree.c