]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: make the record pointer passed to query_range functions const
authorDarrick J. Wong <djwong@kernel.org>
Mon, 31 Jan 2022 20:25:47 +0000 (15:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jan 2022 20:25:47 +0000 (15:25 -0500)
commite62318a345fff20e89b9a02e7735d17ab9aeb9cb
tree24209e6738187d85e6543336e17ed9a8bced2d7a
parentd34c637362f6882ba270dee141abd9b2321728f6
xfs: make the record pointer passed to query_range functions const

Source kernel commit: 159eb69dba8baf6d5b58b69936920fb311324c82

The query_range functions are supposed to call a caller-supplied
function on each record found in the dataset.  These functions don't
own the memory storing the record, so don't let them change the record.

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>
db/fsmap.c
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_btree.c
libxfs/xfs_btree.h
libxfs/xfs_ialloc.c
libxfs/xfs_ialloc.h
libxfs/xfs_refcount.c
libxfs/xfs_refcount.h
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h