/linux-4.1.27/fs/btrfs/tests/ |
H A D | inode-tests.c | 27 u64 ram_bytes, u64 offset, u64 disk_bytenr, insert_extent() 52 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); insert_extent() 103 u64 disk_bytenr = 1 * 1024 * 1024; setup_file_extents() local 130 insert_extent(root, offset, 4095, 4095, 0, disk_bytenr, 4096, setup_file_extents() 133 disk_bytenr += 4096; setup_file_extents() 140 insert_extent(root, offset, 4096, 16384, 0, disk_bytenr, 16384, setup_file_extents() 148 insert_extent(root, offset, 8192, 16384, 8192, disk_bytenr, 16384, setup_file_extents() 152 disk_bytenr += 16384; setup_file_extents() 155 insert_extent(root, offset, 4096, 4096, 0, disk_bytenr, 4096, setup_file_extents() 161 * We want to jack up disk_bytenr a little more so the em stuff doesn't setup_file_extents() 164 disk_bytenr += 8192; setup_file_extents() 171 insert_extent(root, offset, 4096, 16384, 0, disk_bytenr, 16384, setup_file_extents() 175 insert_extent(root, offset, 4096, 16384, 4096, disk_bytenr, 16384, setup_file_extents() 179 insert_extent(root, offset, 8192, 16384, 8192, disk_bytenr, 16384, setup_file_extents() 183 disk_bytenr += 16384; setup_file_extents() 186 insert_extent(root, offset, 8192, 8192, 0, disk_bytenr, 4096, setup_file_extents() 191 disk_bytenr += 8192; setup_file_extents() 194 insert_extent(root, offset, 4096, 16384, 0, disk_bytenr, 4096, setup_file_extents() 198 insert_extent(root, offset, 4096, 4096, 0, disk_bytenr + 4096, 4096, setup_file_extents() 202 insert_extent(root, offset, 8192, 16384, 8192, disk_bytenr, 4096, setup_file_extents() 206 disk_bytenr += 8192; setup_file_extents() 209 insert_extent(root, offset, 4096, 4096, 0, disk_bytenr, 4096, setup_file_extents() 213 disk_bytenr += 4096; setup_file_extents() 214 insert_extent(root, offset, 4096, 4096, 0, disk_bytenr, 4096, setup_file_extents() 228 u64 disk_bytenr; test_btrfs_get_extent() local 418 disk_bytenr = em->block_start; test_btrfs_get_extent() 467 disk_bytenr += (em->start - orig_start); test_btrfs_get_extent() 468 if (em->block_start != disk_bytenr) { test_btrfs_get_extent() 470 disk_bytenr, em->block_start); test_btrfs_get_extent() 529 disk_bytenr = em->block_start; test_btrfs_get_extent() 557 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { test_btrfs_get_extent() 559 disk_bytenr + (em->start - em->orig_start), test_btrfs_get_extent() 590 if (em->block_start != (disk_bytenr + (em->start - em->orig_start))) { test_btrfs_get_extent() 592 disk_bytenr + (em->start - em->orig_start), test_btrfs_get_extent() 662 disk_bytenr = em->block_start; test_btrfs_get_extent() 698 if (em->block_start != disk_bytenr) { test_btrfs_get_extent() 700 disk_bytenr, em->block_start); test_btrfs_get_extent() 26 insert_extent(struct btrfs_root *root, u64 start, u64 len, u64 ram_bytes, u64 offset, u64 disk_bytenr, u64 disk_len, u32 type, u8 compression, int slot) insert_extent() argument
|
/linux-4.1.27/fs/btrfs/ |
H A D | file-item.c | 174 u64 disk_bytenr; __btrfs_lookup_bio_sums() local 220 disk_bytenr = (u64)bio->bi_iter.bi_sector << 9; __btrfs_lookup_bio_sums() 226 count = btrfs_find_ordered_sum(inode, offset, disk_bytenr, __btrfs_lookup_bio_sums() 231 if (!item || disk_bytenr < item_start_offset || __btrfs_lookup_bio_sums() 232 disk_bytenr >= item_last_offset) { __btrfs_lookup_bio_sums() 239 path, disk_bytenr, 0); __btrfs_lookup_bio_sums() 273 diff = disk_bytenr - item_start_offset; __btrfs_lookup_bio_sums() 276 count = min_t(int, nblocks, (item_last_offset - disk_bytenr) >> __btrfs_lookup_bio_sums() 286 disk_bytenr += bvec->bv_len; __btrfs_lookup_bio_sums()
|
H A D | ordered-data.c | 996 int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, btrfs_find_ordered_sum() argument 1013 if (disk_bytenr >= ordered_sum->bytenr && btrfs_find_ordered_sum() 1014 disk_bytenr < ordered_sum->bytenr + ordered_sum->len) { btrfs_find_ordered_sum() 1015 i = (disk_bytenr - ordered_sum->bytenr) >> btrfs_find_ordered_sum() 1026 disk_bytenr += num_sectors * sectorsize; btrfs_find_ordered_sum()
|
H A D | ordered-data.h | 196 int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr,
|
H A D | inode.c | 1220 u64 disk_bytenr; run_delalloc_nocow() local 1293 disk_bytenr = 0; run_delalloc_nocow() 1321 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); run_delalloc_nocow() 1331 if (disk_bytenr == 0) run_delalloc_nocow() 1339 if (btrfs_extent_readonly(root, disk_bytenr)) run_delalloc_nocow() 1343 extent_offset, disk_bytenr)) run_delalloc_nocow() 1345 disk_bytenr += extent_offset; run_delalloc_nocow() 1346 disk_bytenr += cur_offset - found_key.offset; run_delalloc_nocow() 1362 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) run_delalloc_nocow() 1413 em->block_start = disk_bytenr; run_delalloc_nocow() 1438 ret = btrfs_add_ordered_extent(inode, cur_offset, disk_bytenr, run_delalloc_nocow() 2053 u64 disk_bytenr, u64 disk_num_bytes, insert_reserved_file_extent() 2101 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); insert_reserved_file_extent() 2115 ins.objectid = disk_bytenr; insert_reserved_file_extent() 2708 u64 disk_bytenr; record_old_file_extents() local 2738 disk_bytenr = btrfs_file_extent_disk_bytenr(l, extent); record_old_file_extents() 2739 if (!disk_bytenr) record_old_file_extents() 2751 old->bytenr = disk_bytenr; record_old_file_extents() 7119 u64 disk_bytenr; can_nocow_extent() local 7174 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); can_nocow_extent() 7175 if (disk_bytenr == 0) can_nocow_extent() 7191 if (btrfs_extent_readonly(root, disk_bytenr)) can_nocow_extent() 7220 key.offset - backref_offset, disk_bytenr); can_nocow_extent() 7228 * adjust disk_bytenr and num_bytes to cover just the bytes can_nocow_extent() 7233 disk_bytenr += backref_offset; can_nocow_extent() 7234 disk_bytenr += offset - key.offset; can_nocow_extent() 7235 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) can_nocow_extent() 8241 dip->disk_bytenr = (u64)dio_bio->bi_iter.bi_sector << 9; btrfs_submit_direct() 2051 insert_reserved_file_extent(struct btrfs_trans_handle *trans, struct inode *inode, u64 file_pos, u64 disk_bytenr, u64 disk_num_bytes, u64 num_bytes, u64 ram_bytes, u8 compression, u8 encryption, u16 other_encoding, int extent_type) insert_reserved_file_extent() argument
|
H A D | file.c | 705 u64 disk_bytenr = 0; __btrfs_drop_extents() local 777 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); __btrfs_drop_extents() 853 if (update_refs && disk_bytenr > 0) { __btrfs_drop_extents() 855 disk_bytenr, num_bytes, 0, __btrfs_drop_extents() 882 if (update_refs && disk_bytenr > 0) __btrfs_drop_extents() 902 if (update_refs && disk_bytenr > 0) __btrfs_drop_extents() 931 } else if (update_refs && disk_bytenr > 0) { __btrfs_drop_extents() 933 disk_bytenr, num_bytes, 0, __btrfs_drop_extents()
|
H A D | btrfs_inode.h | 289 u64 disk_bytenr; member in struct:btrfs_dio_private
|
H A D | relocation.c | 4487 u64 disk_bytenr; btrfs_reloc_clone_csums() local 4494 disk_bytenr = file_pos + BTRFS_I(inode)->index_cnt; btrfs_reloc_clone_csums() 4495 ret = btrfs_lookup_csums_range(root->fs_info->csum_root, disk_bytenr, btrfs_reloc_clone_csums() 4496 disk_bytenr + len - 1, &list, 0); btrfs_reloc_clone_csums() 4516 new_bytenr = ordered->start + (sums->bytenr - disk_bytenr); btrfs_reloc_clone_csums()
|
H A D | ctree.h | 392 (offsetof(struct btrfs_file_extent_item, disk_bytenr)) 908 __le64 disk_bytenr; member in struct:btrfs_file_extent_item 3115 struct btrfs_file_extent_item, disk_bytenr, 64); 3139 disk_bytenr, 64);
|
H A D | check-integrity.c | 1442 printk(KERN_INFO "extent_data: type %u, disk_bytenr = %llu\n", btrfsic_handle_extent_data() 1470 printk(KERN_INFO "extent_data: type %u, disk_bytenr = %llu," btrfsic_handle_extent_data()
|