xfs: make the start pointer passed to btree alloc_block functions const
authorDarrick J. Wong <djwong@kernel.org>
Thu, 12 Aug 2021 16:53:27 +0000 (09:53 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 01:46:02 +0000 (18:46 -0700)
commitdeb06b9ab6dfa167c280a68d5acb2f12e007073f
tree519ceb881b11c16af2e39fddf81d95ec6e873afc
parentb5a6e5fe0e6840bc90e51cf522d6c5a880cde567
xfs: make the start pointer passed to btree alloc_block functions const

The @start pointer passed to each per-AG btree type's ->alloc_block
function isn't supposed to be modified, since it's a hint about the
location of the btree block being split that is to be fed to the
allocator, so mark the parameter 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_bmap_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