KVM: PPC: Book3S: Fix compile error that occurs with some gcc versions
[linux/fpc-iii.git] / fs / xfs / libxfs / xfs_ag_resv.h
blob8d6c687deef3a10da86e43d9f931104e1dc6f7d2
1 /*
2 * Copyright (C) 2016 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it would be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __XFS_AG_RESV_H__
21 #define __XFS_AG_RESV_H__
23 int xfs_ag_resv_free(struct xfs_perag *pag);
24 int xfs_ag_resv_init(struct xfs_perag *pag);
26 bool xfs_ag_resv_critical(struct xfs_perag *pag, enum xfs_ag_resv_type type);
27 xfs_extlen_t xfs_ag_resv_needed(struct xfs_perag *pag,
28 enum xfs_ag_resv_type type);
30 void xfs_ag_resv_alloc_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
31 struct xfs_alloc_arg *args);
32 void xfs_ag_resv_free_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
33 struct xfs_trans *tp, xfs_extlen_t len);
35 #endif /* __XFS_AG_RESV_H__ */