Lines Matching refs:bytenr
212 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search() argument
226 if (bytenr < start) { in block_group_cache_tree_search()
230 } else if (bytenr > start) { in block_group_cache_tree_search()
231 if (contains && bytenr <= end) { in block_group_cache_tree_search()
243 if (bytenr == 0 && info->first_logical_byte > ret->start) in block_group_cache_tree_search()
255 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_first_block_group() argument
257 return block_group_cache_tree_search(info, bytenr, 0); in btrfs_lookup_first_block_group()
264 struct btrfs_fs_info *info, u64 bytenr) in btrfs_lookup_block_group() argument
266 return block_group_cache_tree_search(info, bytenr, 1); in btrfs_lookup_block_group()
296 bool btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_inc_nocow_writers() argument
301 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_inc_nocow_writers()
319 void btrfs_dec_nocow_writers(struct btrfs_fs_info *fs_info, u64 bytenr) in btrfs_dec_nocow_writers() argument
323 bg = btrfs_lookup_block_group(fs_info, bytenr); in btrfs_dec_nocow_writers()
1759 u64 bytenr; in btrfs_rmap_block() local
1812 bytenr = chunk_start + stripe_nr * io_stripe_size + offset; in btrfs_rmap_block()
1816 if (buf[j] == bytenr) { in btrfs_rmap_block()
1823 buf[nr++] = bytenr; in btrfs_rmap_block()
1838 u64 bytenr; in exclude_super_stripes() local
1853 bytenr = btrfs_sb_offset(i); in exclude_super_stripes()
1855 bytenr, &logical, &nr, &stripe_len); in exclude_super_stripes()
3205 u64 bytenr, u64 num_bytes, int alloc) in btrfs_update_block_group() argument
3226 cache = btrfs_lookup_block_group(info, bytenr); in btrfs_update_block_group()
3242 byte_in_group = bytenr - cache->start; in btrfs_update_block_group()
3275 bytenr, bytenr + num_bytes - 1, in btrfs_update_block_group()
3301 bytenr += num_bytes; in btrfs_update_block_group()