hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/fs/xfs/libxfs/xfs_ag_resv.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * Copyright (C) 2016 Oracle. All Rights Reserved.
44 * Author: Darrick J. Wong <darrick.wong@oracle.com>
....@@ -34,18 +34,6 @@
3434 args.len = 1;
3535 pag = xfs_perag_get(mp, agno);
3636 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);
4937 xfs_perag_put(pag);
5038 }
5139