]>
Commit | Line | Data |
---|---|---|
37b3b4d6 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2bd0ea18 | 2 | /* |
f302e9e4 NS |
3 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
2bd0ea18 NS |
5 | */ |
6 | #ifndef __XFS_SB_H__ | |
dfc130f3 | 7 | #define __XFS_SB_H__ |
2bd0ea18 | 8 | |
971ce259 DC |
9 | struct xfs_mount; |
10 | struct xfs_sb; | |
11 | struct xfs_dsb; | |
12 | struct xfs_trans; | |
13 | struct xfs_fsop_geom; | |
14 | struct xfs_perag; | |
15 | ||
4896e6c8 DC |
16 | /* |
17 | * perag get/put wrappers for ref counting | |
18 | */ | |
19 | extern struct xfs_perag *xfs_perag_get(struct xfs_mount *, xfs_agnumber_t); | |
20 | extern struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *, xfs_agnumber_t, | |
21 | int tag); | |
22 | extern void xfs_perag_put(struct xfs_perag *pag); | |
23 | extern int xfs_initialize_perag_data(struct xfs_mount *, xfs_agnumber_t); | |
24 | ||
19ebedcf DC |
25 | extern void xfs_log_sb(struct xfs_trans *tp); |
26 | extern int xfs_sync_sb(struct xfs_mount *mp, bool wait); | |
691fdd72 | 27 | extern int xfs_sync_sb_buf(struct xfs_mount *mp); |
19ebedcf DC |
28 | extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp); |
29 | extern void xfs_sb_from_disk(struct xfs_sb *to, struct xfs_dsb *from); | |
30 | extern void xfs_sb_to_disk(struct xfs_dsb *to, struct xfs_sb *from); | |
4896e6c8 DC |
31 | extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp); |
32 | ||
971ce259 DC |
33 | extern int xfs_update_secondary_sbs(struct xfs_mount *mp); |
34 | ||
fdef0e8b DW |
35 | #define XFS_FS_GEOM_MAX_STRUCT_VER (4) |
36 | extern int xfs_fs_geometry(struct xfs_sb *sbp, struct xfs_fsop_geom *geo, | |
37 | int struct_version); | |
17d741a8 DW |
38 | extern int xfs_sb_read_secondary(struct xfs_mount *mp, |
39 | struct xfs_trans *tp, xfs_agnumber_t agno, | |
40 | struct xfs_buf **bpp); | |
b153fb40 DW |
41 | extern int xfs_sb_get_secondary(struct xfs_mount *mp, |
42 | struct xfs_trans *tp, xfs_agnumber_t agno, | |
43 | struct xfs_buf **bpp); | |
a2a52384 | 44 | |
2bd0ea18 | 45 | #endif /* __XFS_SB_H__ */ |