xfs: make the start pointer passed to btree update_lastrec functions const
authorDarrick J. Wong <djwong@kernel.org>
Thu, 12 Aug 2021 16:56:49 +0000 (09:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 01:46:02 +0000 (18:46 -0700)
commit60e265f7f85a3d91c368f9284dc6501fa1f41e50
tree1791a5be7ed7ec10235730a3c96deaeacec1c618
parentdeb06b9ab6dfa167c280a68d5acb2f12e007073f
xfs: make the start pointer passed to btree update_lastrec functions const

This btree function is called when updating a record in the rightmost
block of a btree so that we can update the AGF's longest free extent
length field.  Neither parameter is supposed to be updated, so mark them
both 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