Home
last modified time | relevance | path

Searched refs:disk_bytenr (Results 1 – 12 of 12) sorted by relevance

/linux-4.19.296/fs/btrfs/tests/
Dinode-tests.c16 u64 ram_bytes, u64 offset, u64 disk_bytenr, in insert_extent() argument
41 btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); in insert_extent()
92 u64 disk_bytenr = SZ_1M; in setup_file_extents() local
120 disk_bytenr, sectorsize, BTRFS_FILE_EXTENT_REG, 0, slot); in setup_file_extents()
122 disk_bytenr += sectorsize; in setup_file_extents()
129 insert_extent(root, offset, sectorsize, 4 * sectorsize, 0, disk_bytenr, in setup_file_extents()
138 2 * sectorsize, disk_bytenr, 4 * sectorsize, in setup_file_extents()
142 disk_bytenr += 4 * sectorsize; in setup_file_extents()
145 insert_extent(root, offset, sectorsize, sectorsize, 0, disk_bytenr, in setup_file_extents()
154 disk_bytenr += 2 * sectorsize; in setup_file_extents()
[all …]
/linux-4.19.296/fs/btrfs/
Dfile-item.c164 u64 disk_bytenr; in __btrfs_lookup_bio_sums() local
208 disk_bytenr = (u64)bio->bi_iter.bi_sector << 9; in __btrfs_lookup_bio_sums()
219 count = btrfs_find_ordered_sum(inode, offset, disk_bytenr, in __btrfs_lookup_bio_sums()
224 if (!item || disk_bytenr < item_start_offset || in __btrfs_lookup_bio_sums()
225 disk_bytenr >= item_last_offset) { in __btrfs_lookup_bio_sums()
232 path, disk_bytenr, 0); in __btrfs_lookup_bio_sums()
266 diff = disk_bytenr - item_start_offset; in __btrfs_lookup_bio_sums()
269 count = min_t(int, nblocks, (item_last_offset - disk_bytenr) >> in __btrfs_lookup_bio_sums()
280 disk_bytenr += fs_info->sectorsize; in __btrfs_lookup_bio_sums()
Dordered-data.c954 int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, in btrfs_find_ordered_sum() argument
971 if (disk_bytenr >= ordered_sum->bytenr && in btrfs_find_ordered_sum()
972 disk_bytenr < ordered_sum->bytenr + ordered_sum->len) { in btrfs_find_ordered_sum()
973 i = (disk_bytenr - ordered_sum->bytenr) >> in btrfs_find_ordered_sum()
984 disk_bytenr += num_sectors * sectorsize; in btrfs_find_ordered_sum()
Dordered-data.h183 int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr,
Dbtrfs_inode.h302 u64 disk_bytenr; member
Dinode.c1326 u64 disk_bytenr; in run_delalloc_nocow() local
1384 disk_bytenr = 0; in run_delalloc_nocow()
1412 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in run_delalloc_nocow()
1422 if (disk_bytenr == 0) in run_delalloc_nocow()
1438 if (btrfs_extent_readonly(fs_info, disk_bytenr)) in run_delalloc_nocow()
1442 extent_offset, disk_bytenr); in run_delalloc_nocow()
1457 disk_bytenr += extent_offset; in run_delalloc_nocow()
1458 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1471 ret = csum_exist_in_range(fs_info, disk_bytenr, in run_delalloc_nocow()
1486 if (!btrfs_inc_nocow_writers(fs_info, disk_bytenr)) in run_delalloc_nocow()
[all …]
Dfile.c761 u64 disk_bytenr = 0; in __btrfs_drop_extents() local
834 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in __btrfs_drop_extents()
911 if (update_refs && disk_bytenr > 0) { in __btrfs_drop_extents()
913 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents()
946 if (update_refs && disk_bytenr > 0) in __btrfs_drop_extents()
966 if (update_refs && disk_bytenr > 0) in __btrfs_drop_extents()
995 } else if (update_refs && disk_bytenr > 0) { in __btrfs_drop_extents()
997 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents()
Drelocation.c4551 u64 disk_bytenr; in btrfs_reloc_clone_csums() local
4558 disk_bytenr = file_pos + BTRFS_I(inode)->index_cnt; in btrfs_reloc_clone_csums()
4559 ret = btrfs_lookup_csums_range(fs_info->csum_root, disk_bytenr, in btrfs_reloc_clone_csums()
4560 disk_bytenr + len - 1, &list, 0); in btrfs_reloc_clone_csums()
4580 new_bytenr = ordered->start + (sums->bytenr - disk_bytenr); in btrfs_reloc_clone_csums()
Dtree-checker.c183 CHECK_FE_ALIGNED(fs_info, leaf, slot, fi, disk_bytenr, sectorsize) || in check_extent_data_item()
Dctree.h1318 (offsetof(struct btrfs_file_extent_item, disk_bytenr))
2395 struct btrfs_file_extent_item, disk_bytenr, 64);
2419 disk_bytenr, 64);
/linux-4.19.296/include/uapi/linux/
Dbtrfs_tree.h774 __le64 disk_bytenr; member
/linux-4.19.296/include/trace/events/
Dbtrfs.h309 __field( u64, disk_bytenr )
325 __entry->disk_bytenr = btrfs_file_extent_disk_bytenr(l, fi);
344 __entry->disk_bytenr, __entry->disk_num_bytes,