/linux-master/fs/xfs/libxfs/ |
H A D | xfs_ag.h | 154 int xfs_initialize_perag_data(struct xfs_mount *mp, xfs_agnumber_t agno); 158 struct xfs_perag *xfs_perag_get(struct xfs_mount *mp, xfs_agnumber_t agno); 159 struct xfs_perag *xfs_perag_get_tag(struct xfs_mount *mp, xfs_agnumber_t agno, 173 xfs_agblock_t xfs_ag_block_count(struct xfs_mount *mp, xfs_agnumber_t agno); 174 void xfs_agino_range(struct xfs_mount *mp, xfs_agnumber_t agno, 229 xfs_ag_contains_log(struct xfs_mount *mp, xfs_agnumber_t agno) argument 232 agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); 241 xfs_agnumber_t *agno, 246 *agno = pag->pag_agno + 1; 248 while (*agno < 239 xfs_perag_next( struct xfs_perag *pag, xfs_agnumber_t *agno, xfs_agnumber_t end_agno) argument 277 xfs_perag_next_wrap( struct xfs_perag *pag, xfs_agnumber_t *agno, xfs_agnumber_t stop_agno, xfs_agnumber_t restart_agno, xfs_agnumber_t wrap_agno) argument 330 xfs_agblock_t agno; /* ag to init */ member in struct:aghdr_init_data [all...] |
H A D | xfs_types.c | 24 xfs_agnumber_t agno, 29 eoag = xfs_ag_block_count(mp, agno); 46 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); local 48 if (agno >= mp->m_sb.sb_agcount) 50 return xfs_verify_agno_agbno(mp, agno, XFS_FSB_TO_AGBNO(mp, fsbno)); 83 xfs_agnumber_t agno, 89 xfs_agino_range(mp, agno, &first, &last); 102 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, ino); local 105 if (agno >= mp->m_sb.sb_agcount) 107 if (XFS_AGINO_TO_INO(mp, agno, agin 22 xfs_verify_agno_agbno( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t agbno) argument 81 xfs_verify_agno_agino( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t agino) argument 174 xfs_agnumber_t agno; local [all...] |
H A D | xfs_ag_resv.h | 44 xfs_agnumber_t agno) 50 pag = xfs_perag_get(mp, agno); 42 xfs_ag_resv_rmapbt_alloc( struct xfs_mount *mp, xfs_agnumber_t agno) argument
|
H A D | xfs_ag.c | 44 xfs_agnumber_t agno) 49 pag = radix_tree_lookup(&mp->m_perag_tree, agno); 115 xfs_agnumber_t agno) 120 pag = radix_tree_lookup(&mp->m_perag_tree, agno); 256 xfs_agnumber_t agno; local 258 for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) { 260 pag = radix_tree_delete(&mp->m_perag_tree, agno); 281 xfs_agnumber_t agno, 42 xfs_perag_get( struct xfs_mount *mp, xfs_agnumber_t agno) argument 113 xfs_perag_grab( struct xfs_mount *mp, xfs_agnumber_t agno) argument 279 __xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agnumber_t agcount, xfs_rfsblock_t dblocks) argument 293 xfs_ag_block_count( struct xfs_mount *mp, xfs_agnumber_t agno) argument 327 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) argument [all...] |
H A D | xfs_sb.h | 32 struct xfs_trans *tp, xfs_agnumber_t agno, 35 struct xfs_trans *tp, xfs_agnumber_t agno,
|
/linux-master/fs/jfs/ |
H A D | jfs_discard.c | 70 int agno, agno_end; local 97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); 99 while (agno <= agno_end) { 100 trimmed += dbDiscardAG(ip, agno, minlen); 101 agno++;
|
H A D | jfs_imap.c | 57 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) 58 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) 848 int iagno, ino, extno, bitno, sword, agno; local 882 agno = BLKTOAG(JFS_IP(ip)->agstart, JFS_SBI(ip->i_sb)); 886 AG_LOCK(imap, agno); 897 AG_UNLOCK(imap, agno); 917 AG_UNLOCK(imap, agno); 926 if (imap->im_agctl[agno] 1323 int nwords, rem, i, agno, dn_numag; local 1631 diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) argument 1701 diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) argument 1765 diAllocIno(struct inomap * imap, int agno, struct inode *ip) argument 1889 diAllocExt(struct inomap * imap, int agno, struct inode *ip) argument 2008 int extno, bitno, agno, sword, rc; local 2154 int agno, iagno, fwd, back, freei = 0, sword, rc; local 2437 diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) argument [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_drain.h | 65 xfs_agnumber_t agno); 79 #define xfs_perag_intent_get(mp, agno) xfs_perag_get((mp), (agno))
|
H A D | xfs_icreate_item.h | 17 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
|
H A D | xfs_trace.h | 11 * agno: allocation group number 176 __field(xfs_agnumber_t, agno) 183 __entry->agno = pag->pag_agno; 188 TP_printk("dev %d:%d agno 0x%x passive refs %d active refs %d caller %pS", 190 __entry->agno, 290 TP_PROTO(struct xfs_mount *mp, xfs_agnumber_t agno), 291 TP_ARGS(mp, agno), 294 __field(xfs_agnumber_t, agno) 298 __entry->agno = agno; [all...] |
H A D | xfs_drain.c | 103 xfs_agnumber_t agno) 107 pag = xfs_perag_get(mp, agno); 101 xfs_perag_intent_get( struct xfs_mount *mp, xfs_agnumber_t agno) argument
|
H A D | xfs_extent_busy.c | 37 new->agno = pag->pag_agno; 503 trace_xfs_extent_busy_trim(args->mp, args->agno, *bno, *len, 528 trace_xfs_extent_busy_clear(mp, busyp->agno, busyp->bno, 565 xfs_agnumber_t agno = NULLAGNUMBER; local 569 if (busyp->agno != agno) { 572 agno = busyp->agno; 573 pag = xfs_perag_get(mp, agno); 649 xfs_agnumber_t agno; local [all...] |
H A D | xfs_filestream.c | 68 xfs_agnumber_t agno; local 76 for_each_perag_wrap(mp, start_agno, agno, pag) { 271 xfs_agnumber_t agno = XFS_INO_TO_AGNO(mp, pino); local 281 agno = (item->pag->pag_agno + 1) % mp->m_sb.sb_agcount; 286 agno = (mp->m_agfrotor / rotorstep) % mp->m_sb.sb_agcount; 291 ap->blkno = XFS_AGB_TO_FSB(args->mp, agno, 0); 300 error = xfs_filestream_pick_ag(args, pino, agno, flags, longest);
|
H A D | xfs_icreate_item.c | 92 xfs_agnumber_t agno, 108 icp->ic_format.icl_ag = cpu_to_be32(agno); 151 xfs_agnumber_t agno; local 172 agno = be32_to_cpu(icl->icl_ag); 173 if (agno >= mp->m_sb.sb_agcount) { 174 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agno"); 228 daddr = XFS_AGB_TO_DADDR(mp, agno, 254 return xfs_ialloc_inode_init(mp, NULL, buffer_list, count, agno, agbno, 90 xfs_icreate_log( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, unsigned int count, unsigned int inode_size, xfs_agblock_t length, unsigned int generation) argument
|
H A D | xfs_iwalk.h | 35 xfs_agnumber_t agno,
|
H A D | xfs_notify_failure.c | 170 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(mp, fsbno); local 192 for (; agno <= end_agno; agno++) { 199 pag = xfs_perag_get(mp, agno); 214 if (agno == end_agno) 231 fsbno = XFS_AGB_TO_FSB(mp, agno + 1, 0);
|
H A D | xfs_fsops.c | 54 for (id->agno = nagcount - 1; 55 id->agno >= oagcount; 56 id->agno--, delta -= id->agsize) { 58 if (id->agno == nagcount - 1) 59 id->agsize = nb - (id->agno * 215 pag = xfs_perag_get(mp, id.agno); 535 xfs_agnumber_t agno; local 541 for_each_perag(mp, agno, pag) { 563 xfs_agnumber_t agno; local 568 for_each_perag(mp, agno, pa [all...] |
/linux-master/fs/ext4/ |
H A D | fsmap.c | 91 ext4_group_t agno; local 138 &agno, &cno); 139 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, 162 ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno); 163 trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno), 190 ext4_group_t agno, ext4_grpblk_t start, 202 fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno)); 246 ext4_group_first_block_no(sb, agno + 1)) { 315 ext4_group_t agno, 319 ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno); 189 ext4_getfsmap_datadev_helper(struct super_block *sb, ext4_group_t agno, ext4_grpblk_t start, ext4_grpblk_t len, void *priv) argument 314 ext4_getfsmap_find_sb(struct super_block *sb, ext4_group_t agno, struct list_head *meta_list) argument 412 ext4_group_t agno; local [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | trace.h | 137 __field(xfs_agnumber_t, agno) 147 __entry->agno = sm->sm_agno; 153 TP_printk("dev %d:%d ino 0x%llx type %s agno 0x%x inum 0x%llx gen 0x%x flags (%s) error %d", 157 __entry->agno, 203 TP_PROTO(struct xfs_scrub *sc, xfs_agnumber_t agno, 205 TP_ARGS(sc, agno, bno, error, ret_ip), 209 __field(xfs_agnumber_t, agno) 217 __entry->agno = agno; 222 TP_printk("dev %d:%d type %s agno [all...] |
H A D | health.c | 163 xfs_agnumber_t agno; local 167 for_each_perag(mp, agno, pag) 297 xfs_agnumber_t agno; local 310 for_each_perag(mp, agno, pag) {
|
H A D | newbt.c | 206 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); local 208 if (agno == sc->sa.pag->pag_agno && 238 xfs_agnumber_t agno; local 252 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); 254 trace_xrep_newbt_alloc_ag_blocks(mp, agno, 258 if (agno != sc->sa.pag->pag_agno) { 259 ASSERT(agno == sc->sa.pag->pag_agno); 312 xfs_agnumber_t agno; local 326 agno = XFS_FSB_TO_AGNO(mp, args.fsbno); 328 trace_xrep_newbt_alloc_file_blocks(mp, agno, [all...] |
H A D | iscan.c | 98 xfs_agnumber_t agno = pag->pag_agno; local 106 xfs_agino_range(mp, agno, &first, &last); 201 xfs_agnumber_t agno, 215 cursor = XFS_AGINO_TO_INO(mp, agno, agino); 229 * Prepare to return agno/agino to the iscan caller by moving the lastino 269 xfs_agnumber_t agno; local 279 agno = XFS_INO_TO_AGNO(mp, iscan->cursor_ino); 280 pag = xfs_perag_get(mp, agno); 300 xchk_iscan_move_cursor(iscan, agno, agino); 310 agno 199 xchk_iscan_move_cursor( struct xchk_iscan *iscan, xfs_agnumber_t agno, xfs_agino_t agino) argument [all...] |
H A D | common.h | 38 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno, 44 xfs_agnumber_t agno, xfs_agblock_t bno, int *error); 135 int xchk_ag_init(struct xfs_scrub *sc, xfs_agnumber_t agno, 147 xfs_agnumber_t agno, 150 int error = xchk_ag_init(sc, agno, sa); 155 int xchk_ag_read_headers(struct xfs_scrub *sc, xfs_agnumber_t agno, 145 xchk_ag_init_existing( struct xfs_scrub *sc, xfs_agnumber_t agno, struct xchk_ag *sa) argument
|
H A D | fscounters.c | 77 xfs_agnumber_t agno; local 80 for_each_perag(mp, agno, pag) { 262 xfs_agnumber_t agno) 267 error = xchk_ag_init_existing(sc, agno, &sc->sa); 300 xfs_agnumber_t agno; local 309 for_each_perag(mp, agno, pag) { 330 error = xchk_fscount_btreeblks(sc, fsc, agno); 259 xchk_fscount_btreeblks( struct xfs_scrub *sc, struct xchk_fscounters *fsc, xfs_agnumber_t agno) argument
|
H A D | agheader.c | 39 xfs_agnumber_t agno = sc->sm->sm_agno; local 48 error = xchk_ag_init_existing(sc, agno, &sc->sa); 49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) 77 xfs_agnumber_t agno; local 83 agno = sc->sm->sm_agno; 84 if (agno == 0) 92 pag = xfs_perag_get(mp, agno); 96 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); 114 if (!xchk_process_error(sc, agno, XFS_SB_BLOCK(mp), &error)) 535 xfs_agnumber_t agno local 723 xfs_agnumber_t agno = sc->sm->sm_agno; local 877 xfs_agnumber_t agno = sc->sm->sm_agno; local [all...] |