Lines Matching defs:bytes
1025 * blocks, determine how many bytes can be written.
1027 * @len: Max cap of bytes. What we return in *len must be <= this.
1063 loff_t bytes, max_bytes, max_blks;
1076 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2;
1077 if (!bytes)
1078 bytes = UINT_MAX;
1079 bytes &= bsize_mask;
1080 if (bytes == 0)
1081 bytes = sdp->sd_sb.sb_bsize;
1089 if (len < bytes)
1090 bytes = len;
1091 if (!gfs2_write_alloc_required(ip, offset, bytes)) {
1092 len -= bytes;
1093 offset += bytes;
1097 /* We need to determine how many bytes we can actually
1104 * calculate a more realistic 'bytes' to serve as a good
1105 * starting point for the number of bytes we may be able
1107 gfs2_write_calc_reserv(ip, bytes, &data_blocks, &ind_blocks);
1127 /* Almost done. Calculate bytes that can be written using