Home
last modified time | relevance | path

Searched refs:agi (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/fs/xfs/
Dxfs_ialloc.c116 struct xfs_agi *agi) in xfs_check_agi_freecount() argument
142 ASSERT(freecount == be32_to_cpu(agi->agi_freecount)); in xfs_check_agi_freecount()
147 #define xfs_check_agi_freecount(cur, agi) 0 argument
241 xfs_agi_t *agi; /* allocation group header */ in xfs_ialloc_ag_alloc() local
271 agi = XFS_BUF_TO_AGI(agbp); in xfs_ialloc_ag_alloc()
272 newino = be32_to_cpu(agi->agi_newino); in xfs_ialloc_ag_alloc()
273 agno = be32_to_cpu(agi->agi_seqno); in xfs_ialloc_ag_alloc()
277 (args.agbno < be32_to_cpu(agi->agi_length)))) { in xfs_ialloc_ag_alloc()
328 args.agbno = be32_to_cpu(agi->agi_root); in xfs_ialloc_ag_alloc()
351 args.agbno = be32_to_cpu(agi->agi_root); in xfs_ialloc_ag_alloc()
[all …]
Dxfs_fsops.c124 xfs_agi_t *agi; in xfs_growfs_data_private() local
229 agi = XFS_BUF_TO_AGI(bp); in xfs_growfs_data_private()
230 memset(agi, 0, mp->m_sb.sb_sectsize); in xfs_growfs_data_private()
231 agi->agi_magicnum = cpu_to_be32(XFS_AGI_MAGIC); in xfs_growfs_data_private()
232 agi->agi_versionnum = cpu_to_be32(XFS_AGI_VERSION); in xfs_growfs_data_private()
233 agi->agi_seqno = cpu_to_be32(agno); in xfs_growfs_data_private()
234 agi->agi_length = cpu_to_be32(agsize); in xfs_growfs_data_private()
235 agi->agi_count = 0; in xfs_growfs_data_private()
236 agi->agi_root = cpu_to_be32(XFS_IBT_BLOCK(mp)); in xfs_growfs_data_private()
237 agi->agi_level = cpu_to_be32(1); in xfs_growfs_data_private()
[all …]
Dxfs_ialloc_btree.c63 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_set_root() local
65 agi->agi_root = nptr->s; in xfs_inobt_set_root()
66 be32_add_cpu(&agi->agi_level, inc); in xfs_inobt_set_root()
170 struct xfs_agi *agi = XFS_BUF_TO_AGI(cur->bc_private.a.agbp); in xfs_inobt_init_ptr_from_cur() local
172 ASSERT(cur->bc_private.a.agno == be32_to_cpu(agi->agi_seqno)); in xfs_inobt_init_ptr_from_cur()
174 ptr->s = agi->agi_root; in xfs_inobt_init_ptr_from_cur()
313 struct xfs_agi *agi = XFS_BUF_TO_AGI(agbp); in xfs_inobt_init_cursor() local
320 cur->bc_nlevels = be32_to_cpu(agi->agi_level); in xfs_inobt_init_cursor()
Dxfs_itable.c204 xfs_agi_t *agi; /* agi header data */ in xfs_bulkstat() local
284 agi = XFS_BUF_TO_AGI(agbp); in xfs_bulkstat()
368 be32_to_cpu(agi->agi_length)) in xfs_bulkstat()
Dxfs_inode.c1687 xfs_agi_t *agi; in xfs_iunlink() local
1709 agi = XFS_BUF_TO_AGI(agibp); in xfs_iunlink()
1718 ASSERT(agi->agi_unlinked[bucket_index]); in xfs_iunlink()
1719 ASSERT(be32_to_cpu(agi->agi_unlinked[bucket_index]) != agino); in xfs_iunlink()
1721 if (be32_to_cpu(agi->agi_unlinked[bucket_index]) != NULLAGINO) { in xfs_iunlink()
1734 dip->di_next_unlinked = agi->agi_unlinked[bucket_index]; in xfs_iunlink()
1747 agi->agi_unlinked[bucket_index] = cpu_to_be32(agino); in xfs_iunlink()
1765 xfs_agi_t *agi; in xfs_iunlink_remove() local
1789 agi = XFS_BUF_TO_AGI(agibp); in xfs_iunlink_remove()
1798 ASSERT(be32_to_cpu(agi->agi_unlinked[bucket_index]) != NULLAGINO); in xfs_iunlink_remove()
[all …]
Dxfs_log_recover.c3004 xfs_agi_t *agi; in xlog_recover_clear_agi_bucket() local
3019 agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_clear_agi_bucket()
3020 agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); in xlog_recover_clear_agi_bucket()
3112 xfs_agi_t *agi; in xlog_recover_process_iunlinks() local
3141 agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_process_iunlinks()
3144 agino = be32_to_cpu(agi->agi_unlinked[bucket]); in xlog_recover_process_iunlinks()
3163 agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_process_iunlinks()
3845 struct xfs_agi *agi = XFS_BUF_TO_AGI(agibp); in xlog_recover_check_summary() local
3847 itotal += be32_to_cpu(agi->agi_count); in xlog_recover_check_summary()
3848 ifree += be32_to_cpu(agi->agi_freecount); in xlog_recover_check_summary()