• Home
  • Raw
  • Download

Lines Matching refs:bytenr

182 		  u64 bytenr, int cow)  in btrfs_lookup_csum()  argument
195 file_key.offset = bytenr; in btrfs_lookup_csum()
210 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
584 sums->bytenr = start; in btrfs_lookup_csums_range()
658 sums->bytenr = bio->bi_iter.bi_sector << 9; in btrfs_csum_one_bio()
710 sums->bytenr = (bio->bi_iter.bi_sector << 9) in btrfs_csum_one_bio()
748 u64 bytenr, u64 len) in truncate_one_csum() argument
753 u64 end_byte = bytenr + len; in truncate_one_csum()
761 if (key->offset < bytenr && csum_end <= end_byte) { in truncate_one_csum()
768 u32 new_size = (bytenr - key->offset) >> blocksize_bits; in truncate_one_csum()
771 } else if (key->offset >= bytenr && csum_end > end_byte && in truncate_one_csum()
796 struct btrfs_root *root, u64 bytenr, u64 len) in btrfs_del_csums() argument
801 u64 end_byte = bytenr + len; in btrfs_del_csums()
846 if (csum_end <= bytenr) in btrfs_del_csums()
850 if (key.offset >= bytenr && csum_end <= end_byte) { in btrfs_del_csums()
858 if (key.offset > bytenr && path->slots[0] > 0) { in btrfs_del_csums()
865 if (pk.offset < bytenr || in btrfs_del_csums()
880 if (key.offset == bytenr) in btrfs_del_csums()
882 } else if (key.offset < bytenr && csum_end > end_byte) { in btrfs_del_csums()
904 offset = (bytenr - key.offset) >> blocksize_bits; in btrfs_del_csums()
914 key.offset = bytenr; in btrfs_del_csums()
929 truncate_one_csum(fs_info, path, &key, bytenr, len); in btrfs_del_csums()
930 if (key.offset < bytenr) in btrfs_del_csums()
984 u64 bytenr; in btrfs_csum_file_blocks() local
997 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
999 file_key.offset = bytenr; in btrfs_csum_file_blocks()
1002 item = btrfs_lookup_csum(trans, root, path, bytenr, 1); in btrfs_csum_file_blocks()
1047 csum_offset = (bytenr - found_key.offset) >> in btrfs_csum_file_blocks()
1068 csum_offset = (bytenr - found_key.offset) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1123 tmp = (next_offset - bytenr) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1207 u64 bytenr; in btrfs_extent_item_to_extent_map() local
1222 bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_extent_item_to_extent_map()
1223 if (bytenr == 0) { in btrfs_extent_item_to_extent_map()
1230 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
1233 bytenr += btrfs_file_extent_offset(leaf, fi); in btrfs_extent_item_to_extent_map()
1234 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()