]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make the start pointer passed to btree update_lastrec 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)
commit4228b3850818bc9238c4dd7abbb5e0e7822890d6
tree674005f6acd8c6abd99ee45218d38189a4dd9f15
parent9bd197018b6070581e98374426ca189e3e0db75e
xfs: make the start pointer passed to btree update_lastrec functions const

Source kernel commit: 60e265f7f85a3d91c368f9284dc6501fa1f41e50

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>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_alloc_btree.c
libxfs/xfs_btree.h