/fs/xfs/ |
D | xfs_sync.c | 103 struct xfs_perag *pag, in xfs_inode_ag_walk() argument 105 struct xfs_perag *pag, int flags), in xfs_inode_ag_walk() 125 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, in xfs_inode_ag_walk() 155 if (XFS_INO_TO_AGNO(mp, ip->i_ino) != pag->pag_agno) in xfs_inode_ag_walk() 168 error = execute(batch[i], pag, flags); in xfs_inode_ag_walk() 197 struct xfs_perag *pag, int flags), in xfs_inode_ag_iterator() argument 200 struct xfs_perag *pag; in xfs_inode_ag_iterator() local 206 while ((pag = xfs_perag_get(mp, ag))) { in xfs_inode_ag_iterator() 207 ag = pag->pag_agno + 1; in xfs_inode_ag_iterator() 208 error = xfs_inode_ag_walk(mp, pag, execute, flags); in xfs_inode_ag_iterator() [all …]
|
D | xfs_alloc.c | 464 struct xfs_perag *pag, in xfs_alloc_update_counters() argument 470 pag->pagf_freeblks += len; in xfs_alloc_update_counters() 533 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent() 1472 xfs_perag_t *pag; /* per allocation group data */ in xfs_free_ag_extent() local 1675 pag = xfs_perag_get(mp, agno); in xfs_free_ag_extent() 1676 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent() 1677 xfs_perag_put(pag); in xfs_free_ag_extent() 1732 struct xfs_perag *pag) in xfs_alloc_longest_free_extent() argument 1736 need = XFS_MIN_FREELIST_PAG(pag, mp); in xfs_alloc_longest_free_extent() 1737 if (need > pag->pagf_flcount) in xfs_alloc_longest_free_extent() [all …]
|
D | xfs_ialloc.c | 252 struct xfs_perag *pag; in xfs_ialloc_ag_alloc() local 384 pag = xfs_perag_get(args.mp, agno); in xfs_ialloc_ag_alloc() 385 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc() 386 xfs_perag_put(pag); in xfs_ialloc_ag_alloc() 461 xfs_perag_t *pag; /* per allocation group data */ in xfs_ialloc_ag_select() local 489 pag = xfs_perag_get(mp, agno); in xfs_ialloc_ag_select() 490 if (!pag->pagi_init) { in xfs_ialloc_ag_select() 498 if (!pag->pagi_inodeok) { in xfs_ialloc_ag_select() 507 ineed = pag->pagi_freecount ? 0 : XFS_IALLOC_BLOCKS(mp); in xfs_ialloc_ag_select() 508 if (ineed && !pag->pagf_init) { in xfs_ialloc_ag_select() [all …]
|
D | xfs_filestream.c | 168 struct xfs_perag *pag; in xfs_filestream_peek_ag() local 171 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag() 172 ret = atomic_read(&pag->pagf_fstrms); in xfs_filestream_peek_ag() 173 xfs_perag_put(pag); in xfs_filestream_peek_ag() 182 struct xfs_perag *pag; in xfs_filestream_get_ag() local 185 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag() 186 ret = atomic_inc_return(&pag->pagf_fstrms); in xfs_filestream_get_ag() 187 xfs_perag_put(pag); in xfs_filestream_get_ag() 196 struct xfs_perag *pag; in xfs_filestream_put_ag() local 198 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag() [all …]
|
D | xfs_mount.c | 197 struct xfs_perag *pag; in xfs_perag_get() local 201 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get() 202 if (pag) { in xfs_perag_get() 203 ASSERT(atomic_read(&pag->pag_ref) >= 0); in xfs_perag_get() 204 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get() 208 return pag; in xfs_perag_get() 220 struct xfs_perag *pag; in xfs_perag_get_tag() local 226 (void **)&pag, first, 1, tag); in xfs_perag_get_tag() 231 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get_tag() 233 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag() [all …]
|
D | xfs_iget.c | 171 struct xfs_perag *pag, in xfs_iget_cache_hit() argument 255 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_hit() 265 __xfs_inode_clear_reclaim_tag(mp, pag, ip); in xfs_iget_cache_hit() 274 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_hit() 307 struct xfs_perag *pag, in xfs_iget_cache_miss() argument 369 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_miss() 370 error = radix_tree_insert(&pag->pag_ici_root, agino, ip); in xfs_iget_cache_miss() 377 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss() 384 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss() 427 xfs_perag_t *pag; in xfs_iget() local [all …]
|
D | xfs_sync.h | 42 void __xfs_inode_set_reclaim_tag(struct xfs_perag *pag, struct xfs_inode *ip); 43 void __xfs_inode_clear_reclaim_tag(struct xfs_mount *mp, struct xfs_perag *pag, 48 int (*execute)(struct xfs_inode *ip, struct xfs_perag *pag, int flags),
|
D | xfs_alloc_btree.c | 58 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_set_root() local 64 pag->pagf_levels[btnum] += inc; in xfs_allocbt_set_root() 65 xfs_perag_put(pag); in xfs_allocbt_set_root() 141 struct xfs_perag *pag; in xfs_allocbt_update_lastrec() local 185 pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_update_lastrec() 186 pag->pagf_longest = be32_to_cpu(len); in xfs_allocbt_update_lastrec() 187 xfs_perag_put(pag); in xfs_allocbt_update_lastrec()
|
D | xfs_buf.c | 431 struct xfs_perag *pag; in _xfs_buf_find() local 444 pag = xfs_perag_get(btp->bt_mount, in _xfs_buf_find() 448 spin_lock(&pag->pag_buf_lock); in _xfs_buf_find() 449 rbp = &pag->pag_buf_tree.rb_node; in _xfs_buf_find() 482 rb_insert_color(&new_bp->b_rbnode, &pag->pag_buf_tree); in _xfs_buf_find() 484 new_bp->b_pag = pag; in _xfs_buf_find() 485 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find() 488 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find() 489 xfs_perag_put(pag); in _xfs_buf_find() 494 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find() [all …]
|
D | xfs_discard.c | 48 struct xfs_perag *pag; in xfs_trim_extents() local 52 pag = xfs_perag_get(mp, agno); in xfs_trim_extents() 142 xfs_perag_put(pag); in xfs_trim_extents()
|
D | xfs_ag.h | 262 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument 264 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_BNOi], \ 265 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp))
|
D | xfs_alloc.h | 104 struct xfs_perag *pag; /* per-ag struct for this agno */ member 140 struct xfs_perag *pag);
|
D | xfs_inode.c | 1542 struct xfs_perag *pag; in xfs_ifree_cluster() local 1544 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, inum)); in xfs_ifree_cluster() 1609 ip = radix_tree_lookup(&pag->pag_ici_root, in xfs_ifree_cluster() 1681 xfs_perag_put(pag); in xfs_ifree_cluster() 2240 struct xfs_perag *pag; in xfs_iflush_cluster() local 2251 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino)); in xfs_iflush_cluster() 2263 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, (void**)ilist, in xfs_iflush_cluster() 2339 xfs_perag_put(pag); in xfs_iflush_cluster() 2382 xfs_perag_put(pag); in xfs_iflush_cluster()
|
D | xfs_mount.h | 345 void xfs_perag_put(struct xfs_perag *pag);
|
D | xfs_bmap.c | 2278 struct xfs_perag *pag; in xfs_bmap_btalloc_nullfb() local 2298 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb() 2300 if (!pag->pagf_init) { in xfs_bmap_btalloc_nullfb() 2304 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb() 2312 if (pag->pagf_init) { in xfs_bmap_btalloc_nullfb() 2314 longest = xfs_alloc_longest_free_extent(mp, pag); in xfs_bmap_btalloc_nullfb() 2338 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb() 2344 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb() 2352 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb() 2353 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb() [all …]
|
D | xfs_qm_syscalls.c | 848 struct xfs_perag *pag, in xfs_dqrele_inode() argument
|