]> 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>
Mon, 31 Jan 2022 20:25:48 +0000 (15:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jan 2022 20:25:48 +0000 (15:25 -0500)
commit99c5a7679c2f4909ef6e7b7e413c3aa4229ee6fc
tree674005f6acd8c6abd99ee45218d38189a4dd9f15
parent43cbf380444793cd5fc3801eee4a71f40cd76b9c
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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc_btree.c
libxfs/xfs_btree.h