]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfs: make the pointer passed to btree set_root functions const
authorDarrick J. Wong <djwong@kernel.org>
Thu, 12 Aug 2021 16:49:03 +0000 (09:49 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 01:46:02 +0000 (18:46 -0700)
commitb5a6e5fe0e6840bc90e51cf522d6c5a880cde567
treeb63a15a09a298f308a0bd85d2737dc11b4a1f44f
parent22ece4e836beff1df528ee09cf21ca5fab7235f5
xfs: make the pointer passed to btree set_root functions const

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>
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_btree_staging.c
fs/xfs/libxfs/xfs_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c