Lines Matching defs:bytenr
216 * This will return the block group at or after bytenr if contains is 0, else
217 * it will return the block group that contains the bytenr
220 struct btrfs_fs_info *info, u64 bytenr, int contains)
234 if (bytenr < start) {
238 } else if (bytenr > start) {
239 if (contains && bytenr <= end) {
257 * Return the block group that starts at or after bytenr
260 struct btrfs_fs_info *info, u64 bytenr)
262 return block_group_cache_tree_search(info, bytenr, 0);
266 * Return the block group that contains the given bytenr
269 struct btrfs_fs_info *info, u64 bytenr)
271 return block_group_cache_tree_search(info, bytenr, 1);
305 * @bytenr: Logical start address of the extent.
317 u64 bytenr)
322 bg = btrfs_lookup_block_group(fs_info, bytenr);
2068 u64 bytenr;
2116 bytenr = chunk_start + stripe_nr * io_stripe_size + offset;
2120 if (buf[j] == bytenr) {
2127 buf[nr++] = bytenr;
2142 u64 bytenr;
2158 bytenr = btrfs_sb_offset(i);
2160 bytenr, &logical, &nr, &stripe_len);
3598 u64 bytenr, u64 num_bytes, bool alloc)
3618 cache = btrfs_lookup_block_group(info, bytenr);
3623 ASSERT(bytenr + num_bytes <= cache->start + cache->length);
3667 set_extent_bit(&trans->transaction->pinned_extents, bytenr,
3668 bytenr + num_bytes - 1, EXTENT_DIRTY, NULL);