Home
last modified time | relevance | path

Searched refs:nblks (Results 1 – 9 of 9) sorted by relevance

/linux-2.4.37.9/arch/ppc/boot/utils/
Dmktree.c39 int nblks, i; in main() local
54 nblks = (st.st_size + IMGBLK) / IMGBLK; in main()
68 bt.bb_num_512blocks = htonl(nblks); in main()
111 nblks -= (64 * 1024) / IMGBLK; in main()
120 while (nblks-- > 0) { in main()
/linux-2.4.37.9/fs/xfs/
Dxfs_quota.h327 #define XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, nblks, ninos, fl) \ argument
328 XFS_DQTRXOP(mp, tp, qo_reserve_quota_nblks, mp, ip, nblks, ninos, fl)
334 #define XFS_TRANS_RESERVE_BLKQUOTA(mp, tp, ip, nblks) \ argument
335 XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, nblks, 0, \
337 #define XFS_TRANS_RESERVE_BLKQUOTA_FORCE(mp, tp, ip, nblks) \ argument
338 XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, nblks, 0, \
340 #define XFS_TRANS_UNRESERVE_BLKQUOTA(mp, tp, ip, nblks) \ argument
341 XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, tp, ip, -(nblks), 0, \
Dxfs_attr.c207 uint nblks; in xfs_attr_set() local
268 nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK); in xfs_attr_set()
272 nblks <<= 1; in xfs_attr_set()
279 nblks += dblocks; in xfs_attr_set()
280 nblks += XFS_NEXTENTADD_SPACE_RES(mp, dblocks, XFS_ATTR_FORK); in xfs_attr_set()
284 args.total = nblks; in xfs_attr_set()
306 if ((error = xfs_trans_reserve(args.trans, (uint) nblks, in xfs_attr_set()
307 XFS_ATTRSET_LOG_RES(mp, nblks), in xfs_attr_set()
315 error = XFS_TRANS_RESERVE_QUOTA_NBLKS(mp, args.trans, dp, nblks, 0, in xfs_attr_set()
Dxfs_bmap.c678 xfs_filblks_t nblks; in xfs_bmap_add_extent() local
680 nblks = da_new; in xfs_bmap_add_extent()
682 nblks += cur->bc_private.b.allocated; in xfs_bmap_add_extent()
683 ASSERT(nblks <= da_old); in xfs_bmap_add_extent()
684 if (nblks < da_old) in xfs_bmap_add_extent()
686 (int)(da_old - nblks), rsvd); in xfs_bmap_add_extent()
2826 xfs_filblks_t nblks; /* quota/sb block count */ in xfs_bmap_del_extent() local
2876 nblks = len * mp->m_sb.sb_rextsize; in xfs_bmap_del_extent()
2884 nblks = del->br_blockcount; in xfs_bmap_del_extent()
2902 nblks = 0; in xfs_bmap_del_extent()
[all …]
/linux-2.4.37.9/fs/xfs/quota/
Dxfs_trans_dquot.c634 long nblks, in xfs_trans_dqresv() argument
676 " > hardlimit=%Ld?", nblks, *resbcountp, hardlimit); in xfs_trans_dqresv()
678 if (nblks > 0) { in xfs_trans_dqresv()
685 (hardlimit <= nblks + *resbcountp)) { in xfs_trans_dqresv()
691 (softlimit <= nblks + *resbcountp)) { in xfs_trans_dqresv()
738 (*resbcountp) += (xfs_qcnt_t)nblks; in xfs_trans_dqresv()
752 if (nblks != 0) in xfs_trans_dqresv()
755 nblks); in xfs_trans_dqresv()
791 long nblks, in xfs_trans_reserve_quota_bydquots() argument
807 if (xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, flags)) in xfs_trans_reserve_quota_bydquots()
[all …]
Dxfs_qm.c1688 xfs_qcnt_t nblks, in xfs_qm_quotacheck_dqadjust() argument
1699 if (nblks) { in xfs_qm_quotacheck_dqadjust()
1700 INT_MOD(dqp->q_core.d_bcount, ARCH_CONVERT, nblks); in xfs_qm_quotacheck_dqadjust()
1701 dqp->q_res_bcount += nblks; in xfs_qm_quotacheck_dqadjust()
1765 xfs_qcnt_t nblks, rtblks; in xfs_qm_dqusage_adjust() local
1810 nblks = (xfs_qcnt_t)ip->i_d.di_nblocks; in xfs_qm_dqusage_adjust()
1824 nblks = (xfs_qcnt_t)ip->i_d.di_nblocks - rtblks; in xfs_qm_dqusage_adjust()
1849 xfs_qm_quotacheck_dqadjust(udqp, nblks, rtblks); in xfs_qm_dqusage_adjust()
1854 xfs_qm_quotacheck_dqadjust(gdqp, nblks, rtblks); in xfs_qm_dqusage_adjust()
/linux-2.4.37.9/fs/jfs/
Djfs_extent.c519 s64 nb, nblks, daddr, max; in extBalloc() local
532 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
534 nb = nblks = *nblocks; in extBalloc()
545 nb = min(nblks, extRoundDown(nb)); in extBalloc()
609 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) in extBrealloc() argument
614 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { in extBrealloc()
Djfs_dmap.c465 int nblks, dbitno, wbitno, rbits; in dbUpdatePMap() local
495 for (rem = nblocks; rem > 0; rem -= nblks, blkno += nblks) { in dbUpdatePMap()
516 nblks = min(rem, (s64)BPERDMAP - dbitno); in dbUpdatePMap()
525 for (rbits = nblks; rbits > 0; in dbUpdatePMap()
Djfs_xtree.c2801 int nb, npages, nblks; in xtRelocate() local
2923 nblks = nb >> JFS_IP(ip->i_sb)->l2bsize; in xtRelocate()
2924 cmSetXD(ip, cp, pno, dxaddr, nblks); in xtRelocate()
2929 dxaddr += nblks; in xtRelocate()
2930 sxaddr += nblks; in xtRelocate()