Home
last modified time | relevance | path

Searched refs:icount (Results 1 – 19 of 19) sorted by relevance

/fs/xfs/scrub/
Dfscounters.c182 fsc->icount = 0; in xchk_fscount_aggregate_agcounts()
197 fsc->icount += pag->pagi_count; in xchk_fscount_aggregate_agcounts()
238 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, in xchk_fscount_aggregate_agcounts()
243 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts()
253 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts()
329 int64_t icount, ifree, fdblocks; in xchk_fscounters() local
333 icount = percpu_counter_sum(&mp->m_icount); in xchk_fscounters()
338 if (icount < 0 || ifree < 0 || fdblocks < 0) in xchk_fscounters()
342 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters()
359 if (ifree > icount && ifree - icount > XCHK_FSCOUNT_MIN_VARIANCE) in xchk_fscounters()
[all …]
Drepair.c182 xfs_agino_t icount = NULLAGINO; in xrep_calc_ag_resblks() local
198 icount = pag->pagi_count; in xrep_calc_ag_resblks()
203 icount = pag->pagi_count; in xrep_calc_ag_resblks()
225 if (icount == NULLAGINO || in xrep_calc_ag_resblks()
226 !xfs_verify_agino(mp, sm->sm_agno, icount)) { in xrep_calc_ag_resblks()
230 icount = last - first + 1; in xrep_calc_ag_resblks()
242 trace_xrep_calc_ag_resblks(mp, sm->sm_agno, icount, aglen, in xrep_calc_ag_resblks()
252 inobt_sz = xfs_iallocbt_calc_size(mp, icount / in xrep_calc_ag_resblks()
255 inobt_sz = xfs_iallocbt_calc_size(mp, icount / in xrep_calc_ag_resblks()
Dtrace.h603 TP_PROTO(struct xfs_mount *mp, uint64_t icount, uint64_t ifree,
605 TP_ARGS(mp, icount, ifree, fdblocks, delalloc),
619 __entry->icount_calculated = icount;
811 xfs_agino_t icount, xfs_agblock_t aglen, xfs_agblock_t freelen,
813 TP_ARGS(mp, agno, icount, aglen, freelen, usedlen),
817 __field(xfs_agino_t, icount)
825 __entry->icount = icount;
833 __entry->icount,
Dagheader.c776 xfs_agino_t icount; in xchk_agi_xref_icounts() local
783 error = xfs_ialloc_count_inodes(sc->sa.ino_cur, &icount, &freecount); in xchk_agi_xref_icounts()
786 if (be32_to_cpu(agi->agi_count) != icount || in xchk_agi_xref_icounts()
859 xfs_agino_t icount; in xchk_agi() local
898 icount = be32_to_cpu(agi->agi_count); in xchk_agi()
899 if (icount > last_agino - first_agino + 1 || in xchk_agi()
900 icount < be32_to_cpu(agi->agi_freecount)) in xchk_agi()
Dscrub.h165 uint64_t icount; member
/fs/xfs/
Dxfs_itable.h14 unsigned int icount; /* number of elements in ubuffer */ member
35 return breq->ocount == breq->icount ? -ECANCELED : 0; in xfs_ibulk_advance()
Dxfs_ioctl32.c263 if (get_user(bulkreq.icount, &p32->icount) || in xfs_compat_ioc_fsbulkstat()
274 if (bulkreq.icount <= 0) in xfs_compat_ioc_fsbulkstat()
281 breq.icount = bulkreq.icount; in xfs_compat_ioc_fsbulkstat()
300 breq.icount = 1; in xfs_compat_ioc_fsbulkstat()
Dxfs_super.c278 uint64_t icount; in xfs_set_inode_alloc() local
280 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc()
281 do_div(icount, 100); in xfs_set_inode_alloc()
282 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
283 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
284 max_metadata = icount; in xfs_set_inode_alloc()
792 uint64_t icount; in xfs_fs_statfs() local
810 icount = percpu_counter_sum(&mp->m_icount); in xfs_fs_statfs()
825 statp->f_files = min(icount + fakeinos, (uint64_t)XFS_MAXINUMBER); in xfs_fs_statfs()
837 ffree = statp->f_files - (icount - ifree); in xfs_fs_statfs()
Dxfs_itable.c176 ASSERT(breq->icount == 1); in xfs_bulkstat_one()
283 xfs_bulkstat_iwalk, breq->icount, &bc); in xfs_bulkstat()
413 xfs_inumbers_walk, breq->icount, &ic); in xfs_inumbers()
Dxfs_fsops.c302 uint64_t icount = mp->m_sb.sb_dblocks * mp->m_sb.sb_imax_pct; in xfs_growfs_data() local
303 do_div(icount, 100); in xfs_growfs_data()
304 M_IGEO(mp)->maxicount = XFS_FSB_TO_INO(mp, icount); in xfs_growfs_data()
Dxfs_ioctl.c769 if (bulkreq.icount <= 0) in xfs_ioc_fsbulkstat()
776 breq.icount = bulkreq.icount; in xfs_ioc_fsbulkstat()
795 breq.icount = 1; in xfs_ioc_fsbulkstat()
841 if (hdr->icount == 0 || in xfs_bulk_ireq_setup()
848 breq->icount = hdr->icount; in xfs_bulk_ireq_setup()
868 breq->icount = 1; in xfs_bulk_ireq_setup()
Dxfs_ioctl32.h66 __s32 icount; /* count of entries in buffer */ member
Dxfs_trace.h1017 __field(unsigned long long, icount)
1039 __entry->icount = dqp->q_ino.count;
1067 __entry->icount,
/fs/xfs/libxfs/
Dxfs_types.c245 unsigned long long icount) in xfs_verify_icount() argument
250 return icount >= min && icount <= max; in xfs_verify_icount()
Dxfs_ialloc.h101 struct list_head *buffer_list, int icount,
Dxfs_types.h208 bool xfs_verify_icount(struct xfs_mount *mp, unsigned long long icount);
Dxfs_fs.h435 __s32 icount; /* count of entries in buffer */ member
465 uint32_t icount; /* I: count of entries in buffer */ member
Dxfs_ialloc.c264 int icount, in xfs_ialloc_inode_init() argument
318 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init()
2769 uint64_t icount; in xfs_ialloc_setup_geometry() local
2808 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_ialloc_setup_geometry()
2809 do_div(icount, 100); in xfs_ialloc_setup_geometry()
2810 do_div(icount, igeo->ialloc_blks); in xfs_ialloc_setup_geometry()
2812 icount * igeo->ialloc_blks); in xfs_ialloc_setup_geometry()
/fs/ext4/
Dnamei.c2530 unsigned int icount; in ext4_dx_add_entry() local
2559 icount = dx_get_count(entries); in ext4_dx_add_entry()
2576 unsigned icount1 = icount/2, icount2 = icount - icount1; in ext4_dx_add_entry()
2619 icount * sizeof(struct dx_entry)); in ext4_dx_add_entry()