Searched refs:sectorsize_bits (Results 1 – 17 of 17) sorted by relevance
/linux/fs/btrfs/ |
H A D | subpage.c | 217 __start_bit = offset_in_page(start) >> fs_info->sectorsize_bits; \ 245 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_end_and_test_lock() 374 bitmap_set(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_uptodate() 389 bitmap_clear(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_uptodate() 403 bitmap_set(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_dirty() 428 bitmap_clear(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_and_test_dirty() 454 bitmap_set(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_writeback() 469 bitmap_clear(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_writeback() 486 bitmap_set(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_ordered() 500 bitmap_clear(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_ordered() [all …]
|
H A D | file-item.c | 132 return (bytes >> fs_info->sectorsize_bits) * fs_info->csum_size; in bytes_to_csum_size() 139 return (csum_size / fs_info->csum_size) << fs_info->sectorsize_bits; in csum_size_to_bytes() 233 fs_info->sectorsize_bits; in btrfs_lookup_csum() 327 disk_bytenr) >> fs_info->sectorsize_bits; in search_csum_tree() 351 const unsigned int nblocks = orig_len >> fs_info->sectorsize_bits; in btrfs_lookup_bio_sums() 408 (bio_offset >> fs_info->sectorsize_bits) * csum_size; in btrfs_lookup_bio_sums() 726 (start - orig_start) >> fs_info->sectorsize_bits, in btrfs_lookup_csums_bitmap() 727 size >> fs_info->sectorsize_bits); in btrfs_lookup_csums_bitmap() 835 u32 blocksize_bits = fs_info->sectorsize_bits; in truncate_one_csum() 886 u32 blocksize_bits = fs_info->sectorsize_bits; in btrfs_del_csums() [all …]
|
H A D | scrub.c | 256 stripe->nr_sectors = BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits; in init_scrub_stripe() 274 stripe->csums = kcalloc(BTRFS_STRIPE_LEN >> fs_info->sectorsize_bits, in init_scrub_stripe() 585 int page_index = (sector_nr << fs_info->sectorsize_bits) >> PAGE_SHIFT; in scrub_stripe_get_page() 595 return offset_in_page(sector_nr << fs_info->sectorsize_bits); in scrub_stripe_get_page_offset() 601 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_metadata() 602 const u64 logical = stripe->logical + (sector_nr << fs_info->sectorsize_bits); in scrub_verify_one_metadata() 693 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_sector() 723 (sector_nr << fs_info->sectorsize_bits), in scrub_verify_one_sector() 754 const u32 sectors_per_tree = fs_info->nodesize >> fs_info->sectorsize_bits; in scrub_verify_one_stripe() 799 bio_size >> fs_info->sectorsize_bits); in scrub_repair_read_endio() [all …]
|
H A D | delayed-ref.c | 496 start_index = (delayed_refs->run_delayed_start >> fs_info->sectorsize_bits); in btrfs_select_ref_head() 546 const unsigned long index = (head->bytenr >> fs_info->sectorsize_bits); in btrfs_delete_ref_head() 799 const unsigned long index = (head_ref->bytenr >> fs_info->sectorsize_bits); in add_delayed_ref_head() 980 const unsigned long index = (generic_ref->bytenr >> fs_info->sectorsize_bits); in add_delayed_ref() 1095 const unsigned long index = (bytenr >> trans->fs_info->sectorsize_bits); in btrfs_add_delayed_extent_op() 1159 const unsigned long index = (bytenr >> fs_info->sectorsize_bits); in btrfs_find_delayed_ref_head()
|
H A D | extent_io.c | 1114 start_bit = (start - folio_start) >> fs_info->sectorsize_bits; in set_delalloc_bitmap() 1115 nbits = len >> fs_info->sectorsize_bits; in set_delalloc_bitmap() 1133 start_bit = (start - folio_start) >> fs_info->sectorsize_bits; in find_next_delalloc_bitmap() 1138 *found_start = folio_start + (first_set << fs_info->sectorsize_bits); in find_next_delalloc_bitmap() 1140 *found_len = (first_zero - first_set) << fs_info->sectorsize_bits; in find_next_delalloc_bitmap() 1185 u64 start = page_start + (bit << fs_info->sectorsize_bits); in writepage_delalloc() 1263 fs_info->sectorsize_bits; in writepage_delalloc() 1265 page_start) >> fs_info->sectorsize_bits; in writepage_delalloc() 1411 set_bit((cur - folio_start) >> fs_info->sectorsize_bits, &range_bitmap); in extent_writepage_io() 1418 cur = folio_pos(folio) + (bit << fs_info->sectorsize_bits); in extent_writepage_io() [all …]
|
H A D | fs.h | 798 u32 sectorsize_bits; member 928 const u64 num_csums = csum_bytes >> fs_info->sectorsize_bits; in btrfs_csum_bytes_to_leaves()
|
H A D | free-space-tree.c | 161 return DIV_ROUND_UP(size >> fs_info->sectorsize_bits, BITS_PER_BYTE); in free_space_bitmap_size() 436 nrbits = block_group->length >> block_group->fs_info->sectorsize_bits; in convert_free_space_to_extents() 561 first = (*start - found_start) >> fs_info->sectorsize_bits; in free_space_set_bits() 562 last = (end - found_start) >> fs_info->sectorsize_bits; in free_space_set_bits()
|
H A D | ctree.h | 510 ((bytes) >> (fs_info)->sectorsize_bits)
|
H A D | disk-io.c | 591 cur_bit += (fs_info->nodesize >> fs_info->sectorsize_bits) - 1; in btree_dirty_folio() 2823 fs_info->sectorsize_bits = ilog2(4096); in btrfs_init_fs_info() 3320 fs_info->sectorsize_bits = ilog2(sectorsize); in open_ctree() 3321 fs_info->sectors_per_page = (PAGE_SIZE >> fs_info->sectorsize_bits); in open_ctree()
|
H A D | qgroup.c | 2007 const unsigned long index = (bytenr >> fs_info->sectorsize_bits); in btrfs_qgroup_trace_extent_nolock() 2142 const unsigned long index = (bytenr >> fs_info->sectorsize_bits); in btrfs_qgroup_trace_extent() 3040 const u64 bytenr = (((u64)index) << fs_info->sectorsize_bits); in btrfs_qgroup_account_extents()
|
H A D | defrag.c | 1327 inode->root->fs_info->sectorsize_bits; in defrag_one_cluster()
|
H A D | compression.c | 463 fs_info->sectorsize_bits; in add_ra_bio_pages()
|
H A D | super.c | 1722 u32 bits = fs_info->sectorsize_bits; in btrfs_statfs()
|
H A D | zoned.c | 2164 block_group->start >> fs_info->sectorsize_bits) { in wait_eb_writebacks()
|
H A D | inode.c | 3332 csum_expected = bbio->csum + (bio_offset >> fs_info->sectorsize_bits) * in btrfs_data_csum_ok() 8981 (fs_info->sectorsize_bits - 12); in btrfs_encoded_io_compression_from_extent() 9449 fs_info->sectorsize_bits) in btrfs_do_encoded_write()
|
H A D | file.c | 1271 release_bytes -= dirty_sectors << fs_info->sectorsize_bits; in btrfs_buffered_write()
|
H A D | send.c | 1410 const u64 key = leaf_bytenr >> fs_info->sectorsize_bits; in lookup_backref_cache() 1465 new_entry->entry.key = leaf_bytenr >> fs_info->sectorsize_bits; in store_backref_cache()
|