Lines Matching refs:bytes
786 loff_t bytes, max_bytes; in gfs2_fallocate() local
802 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2; in gfs2_fallocate()
803 if (!bytes) in gfs2_fallocate()
804 bytes = UINT_MAX; in gfs2_fallocate()
805 bytes &= bsize_mask; in gfs2_fallocate()
806 if (bytes == 0) in gfs2_fallocate()
807 bytes = sdp->sd_sb.sb_bsize; in gfs2_fallocate()
821 if (len < bytes) in gfs2_fallocate()
822 bytes = len; in gfs2_fallocate()
823 if (!gfs2_write_alloc_required(ip, offset, bytes)) { in gfs2_fallocate()
824 len -= bytes; in gfs2_fallocate()
825 offset += bytes; in gfs2_fallocate()
833 gfs2_write_calc_reserv(ip, bytes, &data_blocks, &ind_blocks); in gfs2_fallocate()
837 if (error == -ENOSPC && bytes > sdp->sd_sb.sb_bsize) { in gfs2_fallocate()
838 bytes >>= 1; in gfs2_fallocate()
839 bytes &= bsize_mask; in gfs2_fallocate()
840 if (bytes == 0) in gfs2_fallocate()
841 bytes = sdp->sd_sb.sb_bsize; in gfs2_fallocate()
846 max_bytes = bytes; in gfs2_fallocate()