]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfs: make the key parameters to all btree key comparison functions const
authorDarrick J. Wong <djwong@kernel.org>
Wed, 11 Aug 2021 00:02:15 +0000 (17:02 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 01:46:00 +0000 (18:46 -0700)
commitd29d5577774d7d032da1343dba80be7423e307f9
tree3b520ace9e1f71ae3899b934909d60a429f2a2f8
parent7f89c838396e2e5b484dd59cdd59eb990a79fd9a
xfs: make the key parameters to all btree key comparison functions const

The btree key comparison functions are not allowed to change the keys
that are passed in, so mark them const.  We'll need this for the next
patch, which adds const to the btree range query functions.

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_ialloc_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/libxfs/xfs_rmap_btree.c