mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: make the start pointer passed to btree update_lastrec functions const
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>
This commit is contained in:
parent
deb06b9ab6
commit
60e265f7f8
2 changed files with 9 additions and 9 deletions
|
@ -103,11 +103,11 @@ xfs_allocbt_free_block(
|
|||
*/
|
||||
STATIC void
|
||||
xfs_allocbt_update_lastrec(
|
||||
struct xfs_btree_cur *cur,
|
||||
struct xfs_btree_block *block,
|
||||
union xfs_btree_rec *rec,
|
||||
int ptr,
|
||||
int reason)
|
||||
struct xfs_btree_cur *cur,
|
||||
const struct xfs_btree_block *block,
|
||||
const union xfs_btree_rec *rec,
|
||||
int ptr,
|
||||
int reason)
|
||||
{
|
||||
struct xfs_agf *agf = cur->bc_ag.agbp->b_addr;
|
||||
struct xfs_perag *pag;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue