1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef __XFS_SB_H__
19#define __XFS_SB_H__
20
21
22
23
24extern struct xfs_perag *xfs_perag_get(struct xfs_mount *, xfs_agnumber_t);
25extern struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *, xfs_agnumber_t,
26 int tag);
27extern void xfs_perag_put(struct xfs_perag *pag);
28extern int xfs_initialize_perag_data(struct xfs_mount *, xfs_agnumber_t);
29
30extern void xfs_log_sb(struct xfs_trans *tp);
31extern int xfs_sync_sb(struct xfs_mount *mp, bool wait);
32extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
33extern void xfs_sb_from_disk(struct xfs_sb *to, struct xfs_dsb *from);
34extern void xfs_sb_to_disk(struct xfs_dsb *to, struct xfs_sb *from);
35extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
36
37#define XFS_FS_GEOM_MAX_STRUCT_VER (4)
38extern int xfs_fs_geometry(struct xfs_sb *sbp, struct xfs_fsop_geom *geo,
39 int struct_version);
40
41#endif
42