Lines Matching defs:bytes
1212 * blocks, determine how many bytes can be written.
1214 * @len: Max cap of bytes. What we return in *len must be <= this.
1250 loff_t bytes, max_bytes, max_blks;
1263 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2;
1264 if (!bytes)
1265 bytes = UINT_MAX;
1266 bytes &= bsize_mask;
1267 if (bytes == 0)
1268 bytes = sdp->sd_sb.sb_bsize;
1276 if (len < bytes)
1277 bytes = len;
1278 if (!gfs2_write_alloc_required(ip, offset, bytes)) {
1279 len -= bytes;
1280 offset += bytes;
1284 /* We need to determine how many bytes we can actually
1291 * calculate a more realistic 'bytes' to serve as a good
1292 * starting point for the number of bytes we may be able
1294 gfs2_write_calc_reserv(ip, bytes, &data_blocks, &ind_blocks);
1314 /* Almost done. Calculate bytes that can be written using