Home
last modified time | relevance | path

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

/fs/xfs/linux-2.6/
Dxfs_sync.c60 xfs_perag_t *pag = &mp->m_perag[ag]; in xfs_sync_inodes_ag() local
82 read_lock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
83 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, in xfs_sync_inodes_ag()
87 read_unlock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
99 read_unlock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
105 read_unlock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
115 read_unlock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
118 read_unlock(&pag->pag_ici_lock); in xfs_sync_inodes_ag()
567 xfs_perag_t *pag = xfs_get_perag(ip->i_mount, ip->i_ino); in xfs_reclaim_inode() local
574 write_lock(&pag->pag_ici_lock); in xfs_reclaim_inode()
[all …]
Dxfs_sync.h53 void __xfs_inode_clear_reclaim_tag(struct xfs_mount *mp, struct xfs_perag *pag,
/fs/xfs/
Dxfs_iget.c125 struct xfs_perag *pag, in xfs_iget_cache_hit() argument
128 int lock_flags) __releases(pag->pag_ici_lock) in xfs_iget_cache_hit()
180 __xfs_inode_clear_reclaim_tag(mp, pag, ip); in xfs_iget_cache_hit()
202 read_unlock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
213 read_unlock(&pag->pag_ici_lock); in xfs_iget_cache_hit()
221 struct xfs_perag *pag, in xfs_iget_cache_miss() argument
227 int lock_flags) __releases(pag->pag_ici_lock) in xfs_iget_cache_miss()
270 write_lock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
273 error = radix_tree_insert(&pag->pag_ici_root, agino, ip); in xfs_iget_cache_miss()
285 write_unlock(&pag->pag_ici_lock); in xfs_iget_cache_miss()
[all …]
Dxfs_filestream.c145 struct xfs_perag *pag; in _xfs_filestream_pick_ag() local
160 pag = mp->m_perag + ag; in _xfs_filestream_pick_ag()
162 if (!pag->pagf_init) { in _xfs_filestream_pick_ag()
169 if (!pag->pagf_init) in _xfs_filestream_pick_ag()
173 if (pag->pagf_freeblks > maxfree) { in _xfs_filestream_pick_ag()
174 maxfree = pag->pagf_freeblks; in _xfs_filestream_pick_ag()
189 need = XFS_MIN_FREELIST_PAG(pag, mp); in _xfs_filestream_pick_ag()
190 delta = need > pag->pagf_flcount ? need - pag->pagf_flcount : 0; in _xfs_filestream_pick_ag()
191 longest = (pag->pagf_longest > delta) ? in _xfs_filestream_pick_ag()
192 (pag->pagf_longest - delta) : in _xfs_filestream_pick_ag()
[all …]
Dxfs_alloc.c682 args->pag->pagf_freeblks -= args->len; in xfs_alloc_ag_vextent()
1801 xfs_perag_t *pag; /* per allocation group data */ in xfs_free_ag_extent() local
1804 pag = &mp->m_perag[agno]; in xfs_free_ag_extent()
1807 pag->pagf_freeblks += len; in xfs_free_ag_extent()
1892 xfs_perag_t *pag; /* per-ag information structure */ in xfs_alloc_fix_freelist() local
1898 pag = args->pag; in xfs_alloc_fix_freelist()
1900 if (!pag->pagf_init) { in xfs_alloc_fix_freelist()
1904 if (!pag->pagf_init) { in xfs_alloc_fix_freelist()
1918 if (pag->pagf_metadata && args->userdata && in xfs_alloc_fix_freelist()
1926 need = XFS_MIN_FREELIST_PAG(pag, mp); in xfs_alloc_fix_freelist()
[all …]
Dxfs_ialloc.c444 xfs_perag_t *pag; /* per allocation group data */ in xfs_ialloc_ag_select() local
473 pag = &mp->m_perag[agno]; in xfs_ialloc_ag_select()
474 if (!pag->pagi_init) { in xfs_ialloc_ag_select()
482 if (!pag->pagi_inodeok) { in xfs_ialloc_ag_select()
491 ineed = pag->pagi_freecount ? 0 : XFS_IALLOC_BLOCKS(mp); in xfs_ialloc_ag_select()
492 if (ineed && !pag->pagf_init) { in xfs_ialloc_ag_select()
500 if (!ineed || pag->pagf_init) { in xfs_ialloc_ag_select()
501 if (ineed && !(longest = pag->pagf_longest)) in xfs_ialloc_ag_select()
502 longest = pag->pagf_flcount > 0; in xfs_ialloc_ag_select()
504 (pag->pagf_freeblks >= needspace + ineed && in xfs_ialloc_ag_select()
[all …]
Dxfs_mount.c285 xfs_perag_t *pag) in xfs_initialize_perag_icache() argument
287 if (!pag->pag_ici_init) { in xfs_initialize_perag_icache()
288 rwlock_init(&pag->pag_ici_lock); in xfs_initialize_perag_icache()
289 INIT_RADIX_TREE(&pag->pag_ici_root, GFP_ATOMIC); in xfs_initialize_perag_icache()
290 pag->pag_ici_init = 1; in xfs_initialize_perag_icache()
300 xfs_perag_t *pag; in xfs_initialize_perag() local
343 pag = &mp->m_perag[index]; in xfs_initialize_perag()
344 pag->pagi_inodeok = 1; in xfs_initialize_perag()
346 pag->pagf_metadata = 1; in xfs_initialize_perag()
347 xfs_initialize_perag_icache(pag); in xfs_initialize_perag()
[all …]
Dxfs_ag.h224 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument
226 (uint_t)(pag)->pagf_levels[XFS_BTNUM_BNOi], \
227 (uint_t)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp))
Dxfs_inode.c1974 xfs_perag_t *pag = xfs_get_perag(mp, inum); in xfs_ifree_cluster() local
2008 read_lock(&pag->pag_ici_lock); in xfs_ifree_cluster()
2009 ip = radix_tree_lookup(&pag->pag_ici_root, in xfs_ifree_cluster()
2016 read_unlock(&pag->pag_ici_lock); in xfs_ifree_cluster()
2021 read_unlock(&pag->pag_ici_lock); in xfs_ifree_cluster()
2044 read_unlock(&pag->pag_ici_lock); in xfs_ifree_cluster()
2062 read_unlock(&pag->pag_ici_lock); in xfs_ifree_cluster()
2116 xfs_put_perag(mp, pag); in xfs_ifree_cluster()
2703 xfs_perag_t *pag = xfs_get_perag(mp, ip->i_ino); in xfs_iflush_cluster() local
2714 ASSERT(pag->pagi_inodeok); in xfs_iflush_cluster()
[all …]
Dxfs_alloc.h75 struct xfs_perag *pag; /* per-ag struct for this agno */ member
Dxfs_bmap.c2719 xfs_perag_t *pag; in xfs_bmap_btalloc() local
2788 pag = &mp->m_perag[ag]; in xfs_bmap_btalloc()
2789 if (!pag->pagf_init && in xfs_bmap_btalloc()
2798 if (pag->pagf_init) { in xfs_bmap_btalloc()
2799 need = XFS_MIN_FREELIST_PAG(pag, mp); in xfs_bmap_btalloc()
2800 delta = need > pag->pagf_flcount ? in xfs_bmap_btalloc()
2801 need - pag->pagf_flcount : 0; in xfs_bmap_btalloc()
2802 longest = (pag->pagf_longest > delta) ? in xfs_bmap_btalloc()
2803 (pag->pagf_longest - delta) : in xfs_bmap_btalloc()
2804 (pag->pagf_flcount > 0 || in xfs_bmap_btalloc()
[all …]
Dxfs_mount.h469 xfs_put_perag(struct xfs_mount *mp, xfs_perag_t *pag) in xfs_put_perag() argument
/fs/xfs/quota/
Dxfs_qm_syscalls.c1034 xfs_perag_t *pag = &mp->m_perag[ag]; in xfs_qm_dqrele_inodes_ag() local
1044 read_lock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()
1045 nr_found = radix_tree_gang_lookup(&pag->pag_ici_root, in xfs_qm_dqrele_inodes_ag()
1049 read_unlock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()
1061 read_unlock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()
1069 read_unlock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()
1078 read_unlock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()
1081 read_unlock(&pag->pag_ici_lock); in xfs_qm_dqrele_inodes_ag()