iwag 146 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag) iwag 150 fs/xfs/xfs_iwalk.c ASSERT(iwag->recs == NULL); iwag 151 fs/xfs/xfs_iwalk.c iwag->nr_recs = 0; iwag 154 fs/xfs/xfs_iwalk.c size = iwag->sz_recs * sizeof(struct xfs_inobt_rec_incore); iwag 155 fs/xfs/xfs_iwalk.c iwag->recs = kmem_alloc(size, KM_MAYFAIL); iwag 156 fs/xfs/xfs_iwalk.c if (iwag->recs == NULL) iwag 165 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag) iwag 167 fs/xfs/xfs_iwalk.c kmem_free(iwag->recs); iwag 168 fs/xfs/xfs_iwalk.c iwag->recs = NULL; iwag 174 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag) iwag 176 fs/xfs/xfs_iwalk.c struct xfs_mount *mp = iwag->mp; iwag 177 fs/xfs/xfs_iwalk.c struct xfs_trans *tp = iwag->tp; iwag 183 fs/xfs/xfs_iwalk.c agno = XFS_INO_TO_AGNO(mp, iwag->startino); iwag 184 fs/xfs/xfs_iwalk.c for (i = 0; i < iwag->nr_recs; i++) { iwag 185 fs/xfs/xfs_iwalk.c struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; iwag 189 fs/xfs/xfs_iwalk.c if (xfs_pwork_want_abort(&iwag->pwork)) iwag 192 fs/xfs/xfs_iwalk.c if (iwag->inobt_walk_fn) { iwag 193 fs/xfs/xfs_iwalk.c error = iwag->inobt_walk_fn(mp, tp, agno, irec, iwag 194 fs/xfs/xfs_iwalk.c iwag->data); iwag 199 fs/xfs/xfs_iwalk.c if (!iwag->iwalk_fn) iwag 203 fs/xfs/xfs_iwalk.c if (xfs_pwork_want_abort(&iwag->pwork)) iwag 212 fs/xfs/xfs_iwalk.c error = iwag->iwalk_fn(mp, tp, ino, iwag->data); iwag 256 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag, iwag 263 fs/xfs/xfs_iwalk.c struct xfs_mount *mp = iwag->mp; iwag 264 fs/xfs/xfs_iwalk.c struct xfs_trans *tp = iwag->tp; iwag 269 fs/xfs/xfs_iwalk.c iwag->nr_recs = 0; iwag 297 fs/xfs/xfs_iwalk.c irec = &iwag->recs[iwag->nr_recs]; iwag 314 fs/xfs/xfs_iwalk.c if (iwag->trim_start) iwag 323 fs/xfs/xfs_iwalk.c iwag->nr_recs++; iwag 324 fs/xfs/xfs_iwalk.c ASSERT(iwag->nr_recs < iwag->sz_recs); iwag 340 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag, iwag 346 fs/xfs/xfs_iwalk.c struct xfs_mount *mp = iwag->mp; iwag 347 fs/xfs/xfs_iwalk.c struct xfs_trans *tp = iwag->tp; iwag 352 fs/xfs/xfs_iwalk.c ASSERT(iwag->nr_recs > 0); iwag 356 fs/xfs/xfs_iwalk.c irec = &iwag->recs[iwag->nr_recs - 1]; iwag 359 fs/xfs/xfs_iwalk.c error = xfs_iwalk_ag_recs(iwag); iwag 364 fs/xfs/xfs_iwalk.c iwag->nr_recs = 0; iwag 380 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag) iwag 382 fs/xfs/xfs_iwalk.c struct xfs_mount *mp = iwag->mp; iwag 383 fs/xfs/xfs_iwalk.c struct xfs_trans *tp = iwag->tp; iwag 392 fs/xfs/xfs_iwalk.c agno = XFS_INO_TO_AGNO(mp, iwag->startino); iwag 393 fs/xfs/xfs_iwalk.c agino = XFS_INO_TO_AGINO(mp, iwag->startino); iwag 394 fs/xfs/xfs_iwalk.c error = xfs_iwalk_ag_start(iwag, agno, agino, &cur, &agi_bp, &has_more); iwag 400 fs/xfs/xfs_iwalk.c if (xfs_pwork_want_abort(&iwag->pwork)) iwag 404 fs/xfs/xfs_iwalk.c irec = &iwag->recs[iwag->nr_recs]; iwag 410 fs/xfs/xfs_iwalk.c if (iwag->skip_empty && irec->ir_freecount == irec->ir_count) { iwag 421 fs/xfs/xfs_iwalk.c if (iwag->iwalk_fn) iwag 428 fs/xfs/xfs_iwalk.c if (++iwag->nr_recs < iwag->sz_recs) { iwag 442 fs/xfs/xfs_iwalk.c error = xfs_iwalk_run_callbacks(iwag, agno, &cur, &agi_bp, iwag 446 fs/xfs/xfs_iwalk.c if (iwag->nr_recs == 0 || error) iwag 450 fs/xfs/xfs_iwalk.c error = xfs_iwalk_run_callbacks(iwag, agno, &cur, &agi_bp, &has_more); iwag 527 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag iwag = { iwag 544 fs/xfs/xfs_iwalk.c error = xfs_iwalk_alloc(&iwag); iwag 549 fs/xfs/xfs_iwalk.c error = xfs_iwalk_ag(&iwag); iwag 552 fs/xfs/xfs_iwalk.c iwag.startino = XFS_AGINO_TO_INO(mp, agno + 1, 0); iwag 557 fs/xfs/xfs_iwalk.c xfs_iwalk_free(&iwag); iwag 567 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag; iwag 570 fs/xfs/xfs_iwalk.c iwag = container_of(pwork, struct xfs_iwalk_ag, pwork); iwag 574 fs/xfs/xfs_iwalk.c error = xfs_iwalk_alloc(iwag); iwag 578 fs/xfs/xfs_iwalk.c error = xfs_iwalk_ag(iwag); iwag 579 fs/xfs/xfs_iwalk.c xfs_iwalk_free(iwag); iwag 581 fs/xfs/xfs_iwalk.c kmem_free(iwag); iwag 614 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag *iwag; iwag 619 fs/xfs/xfs_iwalk.c iwag = kmem_zalloc(sizeof(struct xfs_iwalk_ag), 0); iwag 620 fs/xfs/xfs_iwalk.c iwag->mp = mp; iwag 621 fs/xfs/xfs_iwalk.c iwag->iwalk_fn = iwalk_fn; iwag 622 fs/xfs/xfs_iwalk.c iwag->data = data; iwag 623 fs/xfs/xfs_iwalk.c iwag->startino = startino; iwag 624 fs/xfs/xfs_iwalk.c iwag->sz_recs = xfs_iwalk_prefetch(inode_records); iwag 625 fs/xfs/xfs_iwalk.c xfs_pwork_queue(&pctl, &iwag->pwork); iwag 690 fs/xfs/xfs_iwalk.c struct xfs_iwalk_ag iwag = { iwag 705 fs/xfs/xfs_iwalk.c error = xfs_iwalk_alloc(&iwag); iwag 710 fs/xfs/xfs_iwalk.c error = xfs_iwalk_ag(&iwag); iwag 713 fs/xfs/xfs_iwalk.c iwag.startino = XFS_AGINO_TO_INO(mp, agno + 1, 0); iwag 718 fs/xfs/xfs_iwalk.c xfs_iwalk_free(&iwag);