Lines Matching defs:bytes
130 static size_t bytes_to_csum_size(const struct btrfs_fs_info *fs_info, u32 bytes)
132 ASSERT(IS_ALIGNED(bytes, fs_info->sectorsize));
134 return (bytes >> fs_info->sectorsize_bits) * fs_info->csum_size;
154 * spanning @bytes in the file.
156 static int btrfs_ordered_sum_size(struct btrfs_fs_info *fs_info, unsigned long bytes)
158 return sizeof(struct btrfs_ordered_sum) + bytes_to_csum_size(fs_info, bytes);
862 * Delete the csum items from the csum tree for a given range of bytes.
959 * Our bytes are in the middle of the csum,
969 * bytes. Then we loop around again and we have
1176 * would only save a few bytes of leaf space.