Go to the documentation of this file.
18 #ifndef __XFS_ALLOC_H__
19 #define __XFS_ALLOC_H__
32 #define XFS_ALLOCTYPE_ANY_AG 0x01
33 #define XFS_ALLOCTYPE_FIRST_AG 0x02
34 #define XFS_ALLOCTYPE_START_AG 0x04
35 #define XFS_ALLOCTYPE_THIS_AG 0x08
36 #define XFS_ALLOCTYPE_START_BNO 0x10
37 #define XFS_ALLOCTYPE_NEAR_BNO 0x20
38 #define XFS_ALLOCTYPE_THIS_BNO 0x40
43 #define XFS_ALLOC_TYPES \
44 { XFS_ALLOCTYPE_ANY_AG, "ANY_AG" }, \
45 { XFS_ALLOCTYPE_FIRST_AG, "FIRST_AG" }, \
46 { XFS_ALLOCTYPE_START_AG, "START_AG" }, \
47 { XFS_ALLOCTYPE_THIS_AG, "THIS_AG" }, \
48 { XFS_ALLOCTYPE_START_BNO, "START_BNO" }, \
49 { XFS_ALLOCTYPE_NEAR_BNO, "NEAR_BNO" }, \
50 { XFS_ALLOCTYPE_THIS_BNO, "THIS_BNO" }
55 #define XFS_ALLOC_FLAG_TRYLOCK 0x00000001
56 #define XFS_ALLOC_FLAG_FREEING 0x00000002
76 #define XFS_ALLOC_SET_ASIDE(mp) (4 + ((mp)->m_sb.sb_agcount * 4))
90 #define XFS_ALLOC_AG_MAX_USABLE(mp) \
91 ((mp)->m_sb.sb_agblocks - XFS_BB_TO_FSB(mp, XFS_FSS_TO_BB(mp, 4)) - 7)
100 struct xfs_trans *
tp;
101 struct xfs_mount *
mp;
128 #define XFS_ALLOC_USERDATA 1
129 #define XFS_ALLOC_INITIAL_USER_DATA 2
143 struct xfs_mount *
mp);
151 struct xfs_trans *tp,
161 struct xfs_trans *tp,
170 struct xfs_mount *
mp,
171 struct xfs_trans *tp,
180 struct xfs_trans *tp,
191 struct xfs_mount *
mp,
192 struct xfs_trans *tp,
209 struct xfs_trans *tp,