Lines Matching defs:blocks
752 if (change < 0) /* Reset quiet flag if we freed some blocks */
933 unsigned int nalloc = 0, blocks;
971 * two blocks need to be updated instead of 1 */
972 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3;
981 blocks += gfs2_rg_blocks(ip, reserved) + nalloc * ind_blocks + RES_STATFS;
983 error = gfs2_trans_begin(sdp, blocks, 0);
1220 * gfs2_quota_check - check if allocating new blocks will exceed quota
1225 * blocks. ap->min_target, if set, contains the minimum blks
1231 * ap->allowed is set to the number of blocks allowed
1234 * of blocks available.
1405 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift;
1417 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block;
1428 for (x = 0; x < blocks; x++) {
1646 state->s_state[USRQUOTA].blocks = sdp->sd_quota_inode->i_blocks;
1701 unsigned int blocks = 0;
1732 /* Check for existing entry, if none then alloc new blocks */
1761 blocks = 1 + data_blocks + ind_blocks;
1762 ap.target = blocks;
1766 blocks += gfs2_rg_blocks(ip, blocks);
1769 /* Some quotas span block boundaries and can update two blocks,
1771 error = gfs2_trans_begin(sdp, blocks + RES_DINODE + 2, 0);