diff options
| author | Darrick J. Wong <[email protected]> | 2021-08-11 00:02:16 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2021-08-19 01:46:01 +0000 |
| commit | 159eb69dba8baf6d5b58b69936920fb311324c82 (patch) | |
| tree | 7bbd1f5e499826fe8bef7734be85a56572907b59 /fs/xfs/xfs_rtalloc.h | |
| parent | xfs: make the key parameters to all btree query range functions const (diff) | |
| download | kernel-159eb69dba8baf6d5b58b69936920fb311324c82.tar.gz kernel-159eb69dba8baf6d5b58b69936920fb311324c82.zip | |
xfs: make the record pointer passed to query_range functions const
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.h')
| -rw-r--r-- | fs/xfs/xfs_rtalloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_rtalloc.h b/fs/xfs/xfs_rtalloc.h index 51097cb24311..91b00289509b 100644 --- a/fs/xfs/xfs_rtalloc.h +++ b/fs/xfs/xfs_rtalloc.h @@ -22,9 +22,9 @@ struct xfs_rtalloc_rec { }; typedef int (*xfs_rtalloc_query_range_fn)( - struct xfs_trans *tp, - struct xfs_rtalloc_rec *rec, - void *priv); + struct xfs_trans *tp, + const struct xfs_rtalloc_rec *rec, + void *priv); #ifdef CONFIG_XFS_RT /* |
