Lines Matching refs:pag
180 struct xfs_perag *pag, in xfs_trim_gather_extents() argument
184 struct xfs_mount *mp = pag_mount(pag); in xfs_trim_gather_extents()
203 error = xfs_alloc_read_agf(pag, tp, 0, &agbp); in xfs_trim_gather_extents()
209 cur = xfs_bnobt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
215 cur = xfs_cntbt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
219 cur = xfs_cntbt_init_cursor(mp, tp, agbp, pag); in xfs_trim_gather_extents()
263 trace_xfs_discard_exclude(pag_group(pag), fbno, flen); in xfs_trim_gather_extents()
267 trace_xfs_discard_exclude(pag_group(pag), fbno, flen); in xfs_trim_gather_extents()
285 trace_xfs_discard_toosmall(pag_group(pag), fbno, flen); in xfs_trim_gather_extents()
296 if (xfs_extent_busy_search(pag_group(pag), fbno, flen)) { in xfs_trim_gather_extents()
297 trace_xfs_discard_busy(pag_group(pag), fbno, flen); in xfs_trim_gather_extents()
301 xfs_extent_busy_insert_discard(pag_group(pag), fbno, flen, in xfs_trim_gather_extents()
346 struct xfs_perag *pag, in xfs_trim_perag_extents() argument
353 .count = pag->pagf_longest, in xfs_trim_perag_extents()
359 if (start != 0 || end != pag_group(pag)->xg_block_count) in xfs_trim_perag_extents()
374 error = xfs_trim_gather_extents(pag, &tcur, extents); in xfs_trim_perag_extents()
390 error = xfs_discard_extents(pag_mount(pag), extents); in xfs_trim_perag_extents()
412 struct xfs_perag *pag = NULL; in xfs_trim_datadev_extents() local
424 while ((pag = xfs_perag_next_range(mp, pag, start_agno, end_agno))) { in xfs_trim_datadev_extents()
425 xfs_agblock_t agend = pag_group(pag)->xg_block_count; in xfs_trim_datadev_extents()
427 if (pag_agno(pag) == end_agno) in xfs_trim_datadev_extents()
429 error = xfs_trim_perag_extents(pag, start_agbno, agend, minlen); in xfs_trim_datadev_extents()
434 xfs_perag_rele(pag); in xfs_trim_datadev_extents()