Lines Matching defs:bytenr
198 * This will return the block group at or after bytenr if contains is 0, else
199 * it will return the block group that contains the bytenr
202 struct btrfs_fs_info *info, u64 bytenr, int contains)
216 if (bytenr < start) {
220 } else if (bytenr > start) {
221 if (contains && bytenr <= end) {
233 if (bytenr == 0 && info->first_logical_byte > ret->start)
242 * Return the block group that starts at or after bytenr
245 struct btrfs_fs_info *info, u64 bytenr)
247 return block_group_cache_tree_search(info, bytenr, 0);
251 * Return the block group that contains the given bytenr
254 struct btrfs_fs_info *info, u64 bytenr)
256 return block_group_cache_tree_search(info, bytenr, 1);
286 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr)
291 bg = btrfs_lookup_block_group(fs_info, bytenr);
309 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr)
313 bg = btrfs_lookup_block_group(fs_info, bytenr);
1671 u64 bytenr;
1719 bytenr = chunk_start + stripe_nr * io_stripe_size;
1723 if (buf[j] == bytenr) {
1730 buf[nr++] = bytenr;
1744 u64 bytenr;
1759 bytenr = btrfs_sb_offset(i);
1761 bytenr, &logical, &nr, &stripe_len);
2871 u64 bytenr, u64 num_bytes, int alloc)
2892 cache = btrfs_lookup_block_group(info, bytenr);
2908 byte_in_group = bytenr - cache->start;
2943 bytenr, bytenr + num_bytes - 1,
2969 bytenr += num_bytes;