diff options
| author | Darrick J. Wong <[email protected]> | 2021-08-12 16:53:27 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2021-08-19 01:46:02 +0000 |
| commit | deb06b9ab6dfa167c280a68d5acb2f12e007073f (patch) | |
| tree | 519ceb881b11c16af2e39fddf81d95ec6e873afc /fs/xfs/libxfs/xfs_bmap_btree.c | |
| parent | xfs: make the pointer passed to btree set_root functions const (diff) | |
| download | kernel-deb06b9ab6dfa167c280a68d5acb2f12e007073f.tar.gz kernel-deb06b9ab6dfa167c280a68d5acb2f12e007073f.zip | |
xfs: make the start pointer passed to btree alloc_block functions const
The @start pointer passed to each per-AG btree type's ->alloc_block
function isn't supposed to be modified, since it's a hint about the
location of the btree block being split that is to be fed to the
allocator, so mark the parameter const.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap_btree.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_bmap_btree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap_btree.c b/fs/xfs/libxfs/xfs_bmap_btree.c index 961f0193b058..3bb7c03ea4d1 100644 --- a/fs/xfs/libxfs/xfs_bmap_btree.c +++ b/fs/xfs/libxfs/xfs_bmap_btree.c @@ -193,10 +193,10 @@ xfs_bmbt_update_cursor( STATIC int xfs_bmbt_alloc_block( - struct xfs_btree_cur *cur, - union xfs_btree_ptr *start, - union xfs_btree_ptr *new, - int *stat) + struct xfs_btree_cur *cur, + const union xfs_btree_ptr *start, + union xfs_btree_ptr *new, + int *stat) { xfs_alloc_arg_t args; /* block allocation args */ int error; /* error return value */ |
