Lines Matching defs:blocks
708 if (change < 0) /* Reset quiet flag if we freed some blocks */
902 unsigned int nalloc = 0, blocks;
946 * two blocks need to be updated instead of 1 */
947 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3;
956 blocks += gfs2_rg_blocks(ip, reserved) + nalloc * ind_blocks + RES_STATFS;
958 error = gfs2_trans_begin(sdp, blocks, 0);
1201 * gfs2_quota_check - check if allocating new blocks will exceed quota
1206 * blocks. ap->min_target, if set, contains the minimum blks
1212 * ap->allowed is set to the number of blocks allowed
1215 * of blocks available.
1368 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift;
1380 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block;
1391 for (x = 0; x < blocks; x++) {
1634 state->s_state[USRQUOTA].blocks = sdp->sd_quota_inode->i_blocks;
1689 unsigned int blocks = 0;
1720 /* Check for existing entry, if none then alloc new blocks */
1749 blocks = 1 + data_blocks + ind_blocks;
1750 ap.target = blocks;
1754 blocks += gfs2_rg_blocks(ip, blocks);
1757 /* Some quotas span block boundaries and can update two blocks,
1759 error = gfs2_trans_begin(sdp, blocks + RES_DINODE + 2, 0);