1
2
3
4
5
6
7 #ifndef __LIBXFS_AG_H
8 #define __LIBXFS_AG_H 1
9
10 struct xfs_mount;
11 struct xfs_trans;
12
13 struct aghdr_init_data {
14
15 xfs_agblock_t agno;
16 xfs_extlen_t agsize;
17 struct list_head buffer_list;
18 xfs_rfsblock_t nfree;
19
20
21 xfs_daddr_t daddr;
22 size_t numblks;
23 xfs_btnum_t type;
24 };
25
26 int xfs_ag_init_headers(struct xfs_mount *mp, struct aghdr_init_data *id);
27 int xfs_ag_extend_space(struct xfs_mount *mp, struct xfs_trans *tp,
28 struct aghdr_init_data *id, xfs_extlen_t len);
29 int xfs_ag_get_geometry(struct xfs_mount *mp, xfs_agnumber_t agno,
30 struct xfs_ag_geometry *ageo);
31
32 #endif