Merge tag 'pinctrl-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-block.git] / fs / xfs / libxfs / xfs_sb.h
CommitLineData
0b61f8a4 1// SPDX-License-Identifier: GPL-2.0
1da177e4 2/*
7b718769
NS
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
1da177e4
LT
5 */
6#ifndef __XFS_SB_H__
7#define __XFS_SB_H__
8
b16817b6
DC
9struct xfs_mount;
10struct xfs_sb;
11struct xfs_dsb;
12struct xfs_trans;
13struct xfs_fsop_geom;
14struct xfs_perag;
15
61e63ecb
DC
16extern void xfs_log_sb(struct xfs_trans *tp);
17extern int xfs_sync_sb(struct xfs_mount *mp, bool wait);
f7664b31 18extern int xfs_sync_sb_buf(struct xfs_mount *mp);
4d11a402
DC
19extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
20extern void xfs_sb_from_disk(struct xfs_sb *to, struct xfs_dsb *from);
21extern void xfs_sb_to_disk(struct xfs_dsb *to, struct xfs_sb *from);
ff55068c 22extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
fe08cc50 23extern bool xfs_sb_good_version(struct xfs_sb *sbp);
a1d86e8d 24extern uint64_t xfs_sb_version_to_features(struct xfs_sb *sbp);
ff55068c 25
b16817b6
DC
26extern int xfs_update_secondary_sbs(struct xfs_mount *mp);
27
94880628 28#define XFS_FS_GEOM_MAX_STRUCT_VER (5)
03288b19 29extern void xfs_fs_geometry(struct xfs_mount *mp, struct xfs_fsop_geom *geo,
ac503a4c 30 int struct_version);
689e11c8
DW
31extern int xfs_sb_read_secondary(struct xfs_mount *mp,
32 struct xfs_trans *tp, xfs_agnumber_t agno,
33 struct xfs_buf **bpp);
d25522f1
DW
34extern int xfs_sb_get_secondary(struct xfs_mount *mp,
35 struct xfs_trans *tp, xfs_agnumber_t agno,
36 struct xfs_buf **bpp);
c368ebcd 37
15922f5d
DC
38bool xfs_validate_stripe_geometry(struct xfs_mount *mp,
39 __s64 sunit, __s64 swidth, int sectorsize, bool may_repair,
40 bool silent);
7bc1fea9 41
881f78f4
DW
42uint8_t xfs_compute_rextslog(xfs_rtbxlen_t rtextents);
43
1da177e4 44#endif /* __XFS_SB_H__ */