Home
last modified time | relevance | path

Searched refs:pag (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/fs/xfs/
Dxfs_extent_busy.c44 struct xfs_perag *pag; in xfs_extent_busy_insert() local
69 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert()
70 spin_lock(&pag->pagb_lock); in xfs_extent_busy_insert()
71 rbp = &pag->pagb_tree.rb_node; in xfs_extent_busy_insert()
88 rb_insert_color(&new->rb_node, &pag->pagb_tree); in xfs_extent_busy_insert()
91 spin_unlock(&pag->pagb_lock); in xfs_extent_busy_insert()
92 xfs_perag_put(pag); in xfs_extent_busy_insert()
111 struct xfs_perag *pag; in xfs_extent_busy_search() local
116 pag = xfs_perag_get(mp, agno); in xfs_extent_busy_search()
117 spin_lock(&pag->pagb_lock); in xfs_extent_busy_search()
[all …]
Dxfs_icache.c41 struct xfs_perag *pag, struct xfs_inode *ip);
142 struct xfs_perag *pag, in xfs_iget_cache_hit() argument
226 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
236 __xfs_inode_clear_reclaim_tag(mp, pag, ip); in xfs_iget_cache_hit()
243 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
276 struct xfs_perag *pag, in xfs_iget_cache_miss() argument
341 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
342 error = radix_tree_insert(&pag->pag_ici_root, agino, ip); in xfs_iget_cache_miss()
349 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
356 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
[all …]
Dxfs_filestream.c86 struct xfs_perag *pag; in xfs_filestream_peek_ag() local
89 pag = xfs_perag_get(mp, agno); in xfs_filestream_peek_ag()
90 ret = atomic_read(&pag->pagf_fstrms); in xfs_filestream_peek_ag()
91 xfs_perag_put(pag); in xfs_filestream_peek_ag()
100 struct xfs_perag *pag; in xfs_filestream_get_ag() local
103 pag = xfs_perag_get(mp, agno); in xfs_filestream_get_ag()
104 ret = atomic_inc_return(&pag->pagf_fstrms); in xfs_filestream_get_ag()
105 xfs_perag_put(pag); in xfs_filestream_get_ag()
114 struct xfs_perag *pag; in xfs_filestream_put_ag() local
116 pag = xfs_perag_get(mp, agno); in xfs_filestream_put_ag()
[all …]
Dxfs_mount.c125 struct xfs_perag *pag = container_of(head, struct xfs_perag, rcu_head); in __xfs_free_perag() local
127 ASSERT(atomic_read(&pag->pag_ref) == 0); in __xfs_free_perag()
128 kmem_free(pag); in __xfs_free_perag()
139 struct xfs_perag *pag; in xfs_free_perag() local
143 pag = radix_tree_delete(&mp->m_perag_tree, agno); in xfs_free_perag()
145 ASSERT(pag); in xfs_free_perag()
146 ASSERT(atomic_read(&pag->pag_ref) == 0); in xfs_free_perag()
147 call_rcu(&pag->rcu_head, __xfs_free_perag); in xfs_free_perag()
177 xfs_perag_t *pag; in xfs_initialize_perag() local
189 pag = xfs_perag_get(mp, index); in xfs_initialize_perag()
[all …]
Dxfs_buf.c442 struct xfs_perag *pag; in _xfs_buf_find() local
478 pag = xfs_perag_get(btp->bt_mount, in _xfs_buf_find()
482 spin_lock(&pag->pag_buf_lock); in _xfs_buf_find()
483 rbp = &pag->pag_buf_tree.rb_node; in _xfs_buf_find()
516 rb_insert_color(&new_bp->b_rbnode, &pag->pag_buf_tree); in _xfs_buf_find()
518 new_bp->b_pag = pag; in _xfs_buf_find()
519 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
522 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
523 xfs_perag_put(pag); in _xfs_buf_find()
528 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
[all …]
Dxfs_discard.c47 struct xfs_perag *pag; in xfs_trim_extents() local
51 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
141 xfs_perag_put(pag); in xfs_trim_extents()
Dxfs_super.c589 xfs_perag_t *pag; in xfs_set_inode32() local
612 pag = xfs_perag_get(mp, index); in xfs_set_inode32()
613 pag->pagi_inodeok = 0; in xfs_set_inode32()
614 pag->pagf_metadata = 0; in xfs_set_inode32()
615 xfs_perag_put(pag); in xfs_set_inode32()
619 pag = xfs_perag_get(mp, index); in xfs_set_inode32()
620 pag->pagi_inodeok = 1; in xfs_set_inode32()
623 pag->pagf_metadata = 1; in xfs_set_inode32()
624 xfs_perag_put(pag); in xfs_set_inode32()
638 struct xfs_perag *pag; in xfs_set_inode64() local
[all …]
Dxfs_inode.c2252 struct xfs_perag *pag; in xfs_ifree_cluster() local
2254 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, inum)); in xfs_ifree_cluster()
2324 ip = radix_tree_lookup(&pag->pag_ici_root, in xfs_ifree_cluster()
2396 xfs_perag_put(pag); in xfs_ifree_cluster()
3200 struct xfs_perag *pag; in xfs_iflush_cluster() local
3211 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino)); in xfs_iflush_cluster()
3223 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, (void**)ilist, in xfs_iflush_cluster()
3300 xfs_perag_put(pag); in xfs_iflush_cluster()
3343 xfs_perag_put(pag); in xfs_iflush_cluster()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_ialloc.c367 struct xfs_perag *pag; in xfs_ialloc_ag_alloc() local
509 pag = xfs_perag_get(args.mp, agno); in xfs_ialloc_ag_alloc()
510 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc()
511 xfs_perag_put(pag); in xfs_ialloc_ag_alloc()
575 xfs_perag_t *pag; /* per allocation group data */ in xfs_ialloc_ag_select() local
606 pag = xfs_perag_get(mp, agno); in xfs_ialloc_ag_select()
607 if (!pag->pagi_inodeok) { in xfs_ialloc_ag_select()
612 if (!pag->pagi_init) { in xfs_ialloc_ag_select()
618 if (pag->pagi_freecount) { in xfs_ialloc_ag_select()
619 xfs_perag_put(pag); in xfs_ialloc_ag_select()
[all …]
Dxfs_alloc_btree.c55 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_set_root() local
61 pag->pagf_levels[btnum] += inc; in xfs_allocbt_set_root()
62 xfs_perag_put(pag); in xfs_allocbt_set_root()
139 struct xfs_perag *pag; in xfs_allocbt_update_lastrec() local
183 pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_update_lastrec()
184 pag->pagf_longest = be32_to_cpu(len); in xfs_allocbt_update_lastrec()
185 xfs_perag_put(pag); in xfs_allocbt_update_lastrec()
278 struct xfs_perag *pag = bp->b_pag; in xfs_allocbt_verify() local
302 if (pag && in xfs_allocbt_verify()
303 be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_allocbt_verify()
[all …]
Dxfs_sb.c53 struct xfs_perag *pag; in xfs_perag_get() local
57 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
58 if (pag) { in xfs_perag_get()
59 ASSERT(atomic_read(&pag->pag_ref) >= 0); in xfs_perag_get()
60 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get()
64 return pag; in xfs_perag_get()
76 struct xfs_perag *pag; in xfs_perag_get_tag() local
82 (void **)&pag, first, 1, tag); in xfs_perag_get_tag()
87 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get_tag()
89 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag()
[all …]
Dxfs_alloc.c554 struct xfs_perag *pag, in xfs_alloc_update_counters() argument
560 pag->pagf_freeblks += len; in xfs_alloc_update_counters()
623 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent()
1567 xfs_perag_t *pag; /* per allocation group data */ in xfs_free_ag_extent() local
1771 pag = xfs_perag_get(mp, agno); in xfs_free_ag_extent()
1772 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1773 xfs_perag_put(pag); in xfs_free_ag_extent()
1828 struct xfs_perag *pag) in xfs_alloc_longest_free_extent() argument
1832 need = XFS_MIN_FREELIST_PAG(pag, mp); in xfs_alloc_longest_free_extent()
1833 if (need > pag->pagf_flcount) in xfs_alloc_longest_free_extent()
[all …]
Dxfs_alloc.h103 struct xfs_perag *pag; /* per-ag struct for this agno */ member
136 struct xfs_perag *pag);
Dxfs_sb.h27 extern void xfs_perag_put(struct xfs_perag *pag);
Dxfs_ialloc_btree.c215 struct xfs_perag *pag = bp->b_pag; in xfs_inobt_verify() local
237 if (pag && in xfs_inobt_verify()
238 be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_inobt_verify()
Dxfs_format.h769 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument
771 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_BNOi], \
772 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp))
Dxfs_bmap.c3508 struct xfs_perag *pag; in xfs_bmap_longest_free_extent() local
3512 pag = xfs_perag_get(mp, ag); in xfs_bmap_longest_free_extent()
3513 if (!pag->pagf_init) { in xfs_bmap_longest_free_extent()
3518 if (!pag->pagf_init) { in xfs_bmap_longest_free_extent()
3524 longest = xfs_alloc_longest_free_extent(mp, pag); in xfs_bmap_longest_free_extent()
3529 xfs_perag_put(pag); in xfs_bmap_longest_free_extent()