Home
last modified time | relevance | path

Searched refs:agf (Results 1 – 5 of 5) sorted by relevance

/fs/xfs/libxfs/
Dxfs_alloc_btree.c52 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_set_root() local
53 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_allocbt_set_root()
59 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root()
60 be32_add_cpu(&agf->agf_levels[btnum], inc); in xfs_allocbt_set_root()
109 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_allocbt_free_block() local
118 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
137 struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp); in xfs_allocbt_update_lastrec() local
138 xfs_agnumber_t seqno = be32_to_cpu(agf->agf_seqno); in xfs_allocbt_update_lastrec()
157 be32_to_cpu(agf->agf_longest)) in xfs_allocbt_update_lastrec()
182 agf->agf_longest = len; in xfs_allocbt_update_lastrec()
[all …]
Dxfs_alloc.c293 xfs_agf_t *agf; /* a.g. freelist header */ in xfs_alloc_fix_minleft() local
298 agf = XFS_BUF_TO_AGF(args->agbp); in xfs_alloc_fix_minleft()
299 diff = be32_to_cpu(agf->agf_freeblks) in xfs_alloc_fix_minleft()
575 struct xfs_agf *agf = XFS_BUF_TO_AGF(agbp); in xfs_alloc_update_counters() local
578 be32_add_cpu(&agf->agf_freeblks, len); in xfs_alloc_update_counters()
581 if (unlikely(be32_to_cpu(agf->agf_freeblks) > in xfs_alloc_update_counters()
582 be32_to_cpu(agf->agf_length))) in xfs_alloc_update_counters()
1940 struct xfs_agf *agf) in xfs_agfl_needs_reset() argument
1942 uint32_t f = be32_to_cpu(agf->agf_flfirst); in xfs_agfl_needs_reset()
1943 uint32_t l = be32_to_cpu(agf->agf_fllast); in xfs_agfl_needs_reset()
[all …]
Dxfs_btree.c109 struct xfs_agf *agf; /* ag. freespace structure */ in xfs_btree_check_sblock() local
115 agf = XFS_BUF_TO_AGF(agbp); in xfs_btree_check_sblock()
116 agflen = be32_to_cpu(agf->agf_length); in xfs_btree_check_sblock()
/fs/xfs/
Dxfs_fsops.c148 xfs_agf_t *agf; in xfs_growfs_data_private() local
231 agf = XFS_BUF_TO_AGF(bp); in xfs_growfs_data_private()
232 agf->agf_magicnum = cpu_to_be32(XFS_AGF_MAGIC); in xfs_growfs_data_private()
233 agf->agf_versionnum = cpu_to_be32(XFS_AGF_VERSION); in xfs_growfs_data_private()
234 agf->agf_seqno = cpu_to_be32(agno); in xfs_growfs_data_private()
241 agf->agf_length = cpu_to_be32(agsize); in xfs_growfs_data_private()
242 agf->agf_roots[XFS_BTNUM_BNOi] = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_growfs_data_private()
243 agf->agf_roots[XFS_BTNUM_CNTi] = cpu_to_be32(XFS_CNT_BLOCK(mp)); in xfs_growfs_data_private()
244 agf->agf_levels[XFS_BTNUM_BNOi] = cpu_to_be32(1); in xfs_growfs_data_private()
245 agf->agf_levels[XFS_BTNUM_CNTi] = cpu_to_be32(1); in xfs_growfs_data_private()
[all …]
Dxfs_trace.h1489 TP_PROTO(struct xfs_mount *mp, struct xfs_agf *agf, int flags,
1491 TP_ARGS(mp, agf, flags, caller_ip),
1510 __entry->agno = be32_to_cpu(agf->agf_seqno),
1512 __entry->length = be32_to_cpu(agf->agf_length),
1513 __entry->bno_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_BNO]),
1514 __entry->cnt_root = be32_to_cpu(agf->agf_roots[XFS_BTNUM_CNT]),
1516 be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]),
1518 be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]),
1519 __entry->flfirst = be32_to_cpu(agf->agf_flfirst),
1520 __entry->fllast = be32_to_cpu(agf->agf_fllast),
[all …]