Home
last modified time | relevance | path

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

/linux-2.6.39/fs/xfs/linux-2.6/
Dxfs_sync.c103 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()
195 struct xfs_perag *pag, int flags), in xfs_inode_ag_iterator() argument
198 struct xfs_perag *pag; in xfs_inode_ag_iterator() local
204 while ((pag = xfs_perag_get(mp, ag))) { in xfs_inode_ag_iterator()
205 ag = pag->pag_agno + 1; in xfs_inode_ag_iterator()
206 error = xfs_inode_ag_walk(mp, pag, execute, flags); in xfs_inode_ag_iterator()
[all …]
Dxfs_sync.h48 void __xfs_inode_set_reclaim_tag(struct xfs_perag *pag, struct xfs_inode *ip);
49 void __xfs_inode_clear_reclaim_tag(struct xfs_mount *mp, struct xfs_perag *pag,
54 int (*execute)(struct xfs_inode *ip, struct xfs_perag *pag, int flags),
Dxfs_buf.c435 struct xfs_perag *pag; in _xfs_buf_find() local
448 pag = xfs_perag_get(btp->bt_mount, in _xfs_buf_find()
452 spin_lock(&pag->pag_buf_lock); in _xfs_buf_find()
453 rbp = &pag->pag_buf_tree.rb_node; in _xfs_buf_find()
488 rb_insert_color(&new_bp->b_rbnode, &pag->pag_buf_tree); in _xfs_buf_find()
490 new_bp->b_pag = pag; in _xfs_buf_find()
491 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
494 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
495 xfs_perag_put(pag); in _xfs_buf_find()
500 spin_unlock(&pag->pag_buf_lock); in _xfs_buf_find()
[all …]
Dxfs_discard.c48 struct xfs_perag *pag; in xfs_trim_extents() local
52 pag = xfs_perag_get(mp, agno); in xfs_trim_extents()
136 xfs_perag_put(pag); in xfs_trim_extents()
/linux-2.6.39/fs/xfs/
Dxfs_ialloc.c252 struct xfs_perag *pag; in xfs_ialloc_ag_alloc() local
382 pag = xfs_perag_get(args.mp, agno); in xfs_ialloc_ag_alloc()
383 pag->pagi_freecount += newlen; in xfs_ialloc_ag_alloc()
384 xfs_perag_put(pag); in xfs_ialloc_ag_alloc()
459 xfs_perag_t *pag; /* per allocation group data */ in xfs_ialloc_ag_select() local
487 pag = xfs_perag_get(mp, agno); in xfs_ialloc_ag_select()
488 if (!pag->pagi_init) { in xfs_ialloc_ag_select()
496 if (!pag->pagi_inodeok) { in xfs_ialloc_ag_select()
505 ineed = pag->pagi_freecount ? 0 : XFS_IALLOC_BLOCKS(mp); in xfs_ialloc_ag_select()
506 if (ineed && !pag->pagf_init) { in xfs_ialloc_ag_select()
[all …]
Dxfs_filestream.c168 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 …]
Dxfs_alloc.c469 struct xfs_perag *pag, in xfs_alloc_update_counters() argument
475 pag->pagf_freeblks += len; in xfs_alloc_update_counters()
538 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent()
1404 xfs_perag_t *pag; /* per allocation group data */ in xfs_free_ag_extent() local
1607 pag = xfs_perag_get(mp, agno); in xfs_free_ag_extent()
1608 error = xfs_alloc_update_counters(tp, pag, agbp, len); in xfs_free_ag_extent()
1609 xfs_perag_put(pag); in xfs_free_ag_extent()
1676 struct xfs_perag *pag) in xfs_alloc_longest_free_extent() argument
1680 need = XFS_MIN_FREELIST_PAG(pag, mp); in xfs_alloc_longest_free_extent()
1681 if (need > pag->pagf_flcount) in xfs_alloc_longest_free_extent()
[all …]
Dxfs_iget.c178 struct xfs_perag *pag, in xfs_iget_cache_hit() argument
258 __xfs_inode_set_reclaim_tag(pag, ip); in xfs_iget_cache_hit()
263 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
267 __xfs_inode_clear_reclaim_tag(mp, pag, ip); in xfs_iget_cache_hit()
276 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
309 struct xfs_perag *pag, in xfs_iget_cache_miss() argument
354 spin_lock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
357 error = radix_tree_insert(&pag->pag_ici_root, agino, ip); in xfs_iget_cache_miss()
369 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
376 spin_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
[all …]
Dxfs_mount.c200 struct xfs_perag *pag; in xfs_perag_get() local
204 pag = radix_tree_lookup(&mp->m_perag_tree, agno); in xfs_perag_get()
205 if (pag) { in xfs_perag_get()
206 ASSERT(atomic_read(&pag->pag_ref) >= 0); in xfs_perag_get()
207 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get()
211 return pag; in xfs_perag_get()
223 struct xfs_perag *pag; in xfs_perag_get_tag() local
229 (void **)&pag, first, 1, tag); in xfs_perag_get_tag()
234 ref = atomic_inc_return(&pag->pag_ref); in xfs_perag_get_tag()
236 trace_xfs_perag_get_tag(mp, pag->pag_agno, ref, _RET_IP_); in xfs_perag_get_tag()
[all …]
Dxfs_alloc_btree.c59 struct xfs_perag *pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_set_root() local
65 pag->pagf_levels[btnum] += inc; in xfs_allocbt_set_root()
66 xfs_perag_put(pag); in xfs_allocbt_set_root()
150 struct xfs_perag *pag; in xfs_allocbt_update_lastrec() local
194 pag = xfs_perag_get(cur->bc_mp, seqno); in xfs_allocbt_update_lastrec()
195 pag->pagf_longest = be32_to_cpu(len); in xfs_allocbt_update_lastrec()
196 xfs_perag_put(pag); in xfs_allocbt_update_lastrec()
Dxfs_ag.h260 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument
262 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_BNOi], \
263 (unsigned int)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp))
Dxfs_alloc.h102 struct xfs_perag *pag; /* per-ag struct for this agno */ member
135 struct xfs_perag *pag);
Dxfs_inode.c1926 struct xfs_perag *pag; in xfs_ifree_cluster() local
1928 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, inum)); in xfs_ifree_cluster()
1991 ip = radix_tree_lookup(&pag->pag_ici_root, in xfs_ifree_cluster()
2064 xfs_perag_put(pag); in xfs_ifree_cluster()
2614 struct xfs_perag *pag; in xfs_iflush_cluster() local
2625 pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino)); in xfs_iflush_cluster()
2637 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, (void**)ilist, in xfs_iflush_cluster()
2713 xfs_perag_put(pag); in xfs_iflush_cluster()
2756 xfs_perag_put(pag); in xfs_iflush_cluster()
Dxfs_mount.h342 void xfs_perag_put(struct xfs_perag *pag);
Dxfs_bmap.c2436 struct xfs_perag *pag; in xfs_bmap_btalloc_nullfb() local
2456 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb()
2458 if (!pag->pagf_init) { in xfs_bmap_btalloc_nullfb()
2462 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb()
2470 if (pag->pagf_init) { in xfs_bmap_btalloc_nullfb()
2472 longest = xfs_alloc_longest_free_extent(mp, pag); in xfs_bmap_btalloc_nullfb()
2496 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb()
2502 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb()
2510 xfs_perag_put(pag); in xfs_bmap_btalloc_nullfb()
2511 pag = xfs_perag_get(mp, ag); in xfs_bmap_btalloc_nullfb()
[all …]
/linux-2.6.39/fs/xfs/quota/
Dxfs_qm_syscalls.c870 struct xfs_perag *pag, in xfs_dqrele_inode() argument