.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0+ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
2 | 2 | /* |
---|
3 | 3 | * Copyright (C) 2016 Oracle. All Rights Reserved. |
---|
4 | 4 | * Author: Darrick J. Wong <darrick.wong@oracle.com> |
---|
.. | .. |
---|
34 | 34 | args.len = 1; |
---|
35 | 35 | pag = xfs_perag_get(mp, agno); |
---|
36 | 36 | xfs_ag_resv_alloc_extent(pag, XFS_AG_RESV_RMAPBT, &args); |
---|
37 | | - xfs_perag_put(pag); |
---|
38 | | -} |
---|
39 | | - |
---|
40 | | -static inline void |
---|
41 | | -xfs_ag_resv_rmapbt_free( |
---|
42 | | - struct xfs_mount *mp, |
---|
43 | | - xfs_agnumber_t agno) |
---|
44 | | -{ |
---|
45 | | - struct xfs_perag *pag; |
---|
46 | | - |
---|
47 | | - pag = xfs_perag_get(mp, agno); |
---|
48 | | - xfs_ag_resv_free_extent(pag, XFS_AG_RESV_RMAPBT, NULL, 1); |
---|
49 | 37 | xfs_perag_put(pag); |
---|
50 | 38 | } |
---|
51 | 39 | |
---|