/fs/btrfs/tests/ |
D | inode-tests.c | 265 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 266 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 284 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 285 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 306 if (em->block_start != EXTENT_MAP_INLINE) { in test_btrfs_get_extent() 307 test_err("expected an inline, got %llu", em->block_start); in test_btrfs_get_extent() 334 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 335 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 357 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent() 358 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent() [all …]
|
D | extent-map-tests.c | 28 em->start, em->len, em->block_start, in free_extent_map_tree() 72 em->block_start = 0; in test_case_1() 93 em->block_start = SZ_32K; /* avoid merging */ in test_case_1() 114 em->block_start = start; in test_case_1() 125 em->block_start != 0 || em->block_len != SZ_16K)) { in test_case_1() 129 em->block_start, em->block_len); in test_case_1() 160 em->block_start = EXTENT_MAP_INLINE; in test_case_2() 181 em->block_start = SZ_4K; in test_case_2() 202 em->block_start = EXTENT_MAP_INLINE; in test_case_2() 213 em->block_start != EXTENT_MAP_INLINE || em->block_len != (u64)-1)) { in test_case_2() [all …]
|
/fs/isofs/ |
D | compress.c | 40 static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, in zisofs_uncompress_block() argument 49 int i, block_size = block_end - block_start; in zisofs_uncompress_block() 54 int needblocks = (block_size + (block_start & bufmask) + bufmask) in zisofs_uncompress_block() 77 blocknum = block_start >> bufshift; in zisofs_uncompress_block() 138 (block_start & bufmask); in zisofs_uncompress_block() 140 (block_start & bufmask), in zisofs_uncompress_block() 143 block_start = 0; in zisofs_uncompress_block() 210 loff_t block_start, block_end; in zisofs_fill_pages() local 246 block_start = le32_to_cpu(*(__le32 *) in zisofs_fill_pages() 262 if (block_start > block_end) { in zisofs_fill_pages() [all …]
|
/fs/btrfs/ |
D | extent_map.c | 218 ASSERT(next->block_start != EXTENT_MAP_DELALLOC && in mergable_maps() 219 prev->block_start != EXTENT_MAP_DELALLOC); in mergable_maps() 228 ((next->block_start == EXTENT_MAP_HOLE && in mergable_maps() 229 prev->block_start == EXTENT_MAP_HOLE) || in mergable_maps() 230 (next->block_start == EXTENT_MAP_INLINE && in mergable_maps() 231 prev->block_start == EXTENT_MAP_INLINE) || in mergable_maps() 232 (next->block_start < EXTENT_MAP_LAST_BYTE - 1 && in mergable_maps() 233 next->block_start == extent_map_block_end(prev)))) { in mergable_maps() 264 em->block_start = merge->block_start; in try_merge_map() 609 if (em->block_start < EXTENT_MAP_LAST_BYTE && in merge_extent_mapping() [all …]
|
D | extent_map.h | 43 u64 block_start; member 82 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end() 84 return em->block_start + em->block_len; in extent_map_block_end()
|
D | inode.c | 123 u64 len, u64 orig_start, u64 block_start, 1119 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint() 1122 if (em && em->block_start < EXTENT_MAP_LAST_BYTE) in get_extent_allocation_hint() 1123 alloc_hint = em->block_start; in get_extent_allocation_hint() 1127 alloc_hint = em->block_start; in get_extent_allocation_hint() 2564 ASSERT(em->block_start < EXTENT_MAP_LAST_BYTE); in split_zoned_em() 2576 split_pre->block_start = em->block_start; in split_zoned_em() 2597 split_mid->block_start = em->block_start + pre; in split_zoned_em() 2611 split_post->block_start = em->block_start + em->len - post; in split_zoned_em() 2810 if (em->block_start != EXTENT_MAP_HOLE) in btrfs_find_new_delalloc_bytes() [all …]
|
D | file.c | 95 u64 block_start = round_down(pos, fs_info->sectorsize); in btrfs_drop_pages() local 96 u64 block_len = round_up(pos + copied, fs_info->sectorsize) - block_start; in btrfs_drop_pages() 106 btrfs_page_clamp_clear_checked(fs_info, pages[i], block_start, in btrfs_drop_pages() 2146 hole_em->block_start = EXTENT_MAP_HOLE; in fill_holes() 2180 if (em->block_start == EXTENT_MAP_HOLE) { in find_first_non_hole() 2838 if (em->block_start == EXTENT_MAP_HOLE) in btrfs_zero_range_check_range_boundary() 2903 alloc_hint = em->block_start + em->len; in btrfs_zero_range() 2922 if (len < sectorsize && em->block_start != EXTENT_MAP_HOLE) { in btrfs_zero_range() 3136 if (em->block_start == EXTENT_MAP_HOLE || in btrfs_fallocate() 3275 if ((em->block_start == EXTENT_MAP_HOLE || in find_delalloc_subrange() [all …]
|
D | extent_io.c | 1752 u64 block_start; in btrfs_do_readpage() local 1822 disk_bytenr = em->block_start; in btrfs_do_readpage() 1824 disk_bytenr = em->block_start + extent_offset; in btrfs_do_readpage() 1825 block_start = em->block_start; in btrfs_do_readpage() 1827 block_start = EXTENT_MAP_HOLE; in btrfs_do_readpage() 1875 if (block_start == EXTENT_MAP_HOLE) { in btrfs_do_readpage() 1889 if (block_start == EXTENT_MAP_INLINE) { in btrfs_do_readpage() 2095 u64 block_start; in __extent_writepage_io() local 2165 block_start = em->block_start; in __extent_writepage_io() 2167 disk_bytenr = em->block_start + extent_offset; in __extent_writepage_io() [all …]
|
D | file-item.c | 1242 em->block_start = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map() 1248 em->block_start = bytenr; in btrfs_extent_item_to_extent_map() 1252 em->block_start = bytenr; in btrfs_extent_item_to_extent_map() 1258 em->block_start = EXTENT_MAP_INLINE; in btrfs_extent_item_to_extent_map()
|
D | ioctl.c | 1148 em->block_start = EXTENT_MAP_HOLE; in defrag_get_extent() 1265 if (!next || next->block_start >= EXTENT_MAP_LAST_BYTE) in defrag_check_next_extent() 1433 if (em->block_start == EXTENT_MAP_INLINE && in defrag_collect_targets() 1438 if (em->block_start == EXTENT_MAP_HOLE || in defrag_collect_targets() 1439 em->block_start == EXTENT_MAP_DELALLOC || in defrag_collect_targets() 1504 if (em->block_start == EXTENT_MAP_INLINE) in defrag_collect_targets()
|
D | tree-log.c | 4575 em->block_start == EXTENT_MAP_HOLE) in log_extent_csums() 4646 csum_root = btrfs_csum_root(trans->fs_info, em->block_start); in log_extent_csums() 4648 em->block_start + csum_offset, in log_extent_csums() 4649 em->block_start + csum_offset + in log_extent_csums() 4690 btrfs_set_stack_file_extent_disk_bytenr(&fi, em->block_start); in log_one_extent() 4692 } else if (em->block_start < EXTENT_MAP_LAST_BYTE) { in log_one_extent() 4693 btrfs_set_stack_file_extent_disk_bytenr(&fi, em->block_start - in log_one_extent()
|
D | relocation.c | 2920 u64 start, u64 end, u64 block_start) in setup_relocation_extent_mapping() argument 2932 em->block_start = block_start; in setup_relocation_extent_mapping()
|
D | compression.c | 609 (em->block_start >> 9) != cb->orig_bio->bi_iter.bi_sector) { in add_ra_bio_pages()
|
/fs/cramfs/ |
D | inode.c | 823 u32 block_ptr, block_start, block_len; in cramfs_read_folio() local 839 block_start = block_ptr << CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_read_folio() 848 cramfs_read(sb, block_start, 2); in cramfs_read_folio() 849 block_start += 2; in cramfs_read_folio() 859 block_start = OFFSET(inode) + maxblock * 4; in cramfs_read_folio() 861 block_start = *(u32 *) in cramfs_read_folio() 864 if (unlikely(block_start & CRAMFS_BLK_FLAG_DIRECT_PTR)) { in cramfs_read_folio() 866 u32 prev_start = block_start; in cramfs_read_folio() 867 block_start = prev_start & ~CRAMFS_BLK_FLAGS; in cramfs_read_folio() 868 block_start <<= CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_read_folio() [all …]
|
/fs/reiserfs/ |
D | file.c | 173 unsigned block_start, block_end; in reiserfs_commit_page() local 195 for (bh = head = page_buffers(page), block_start = 0; in reiserfs_commit_page() 196 bh != head || !block_start; in reiserfs_commit_page() 197 block_start = block_end, bh = bh->b_this_page) { in reiserfs_commit_page() 201 block_end = block_start + blocksize; in reiserfs_commit_page() 202 if (block_end <= from || block_start >= to) { in reiserfs_commit_page()
|
/fs/ocfs2/ |
D | aops.c | 422 unsigned block_start, block_end; in walk_page_buffers() local 427 for ( bh = head, block_start = 0; in walk_page_buffers() 428 ret == 0 && (bh != head || !block_start); in walk_page_buffers() 429 block_start = block_end, bh = next) in walk_page_buffers() 432 block_end = block_start + blocksize; in walk_page_buffers() 433 if (block_end <= from || block_start >= to) { in walk_page_buffers() 572 unsigned int block_start) in ocfs2_should_read_blk() argument 574 u64 offset = page_offset(page) + block_start; in ocfs2_should_read_blk() 598 unsigned int block_end, block_start; in ocfs2_map_page_blocks() local 605 for (bh = head, block_start = 0; bh != head || !block_start; in ocfs2_map_page_blocks() [all …]
|
D | file.c | 758 unsigned zero_from, zero_to, block_start, block_end; in ocfs2_write_zero_page() local 793 for (block_start = zero_from; block_start < zero_to; in ocfs2_write_zero_page() 794 block_start = block_end) { in ocfs2_write_zero_page() 795 block_end = block_start + i_blocksize(inode); in ocfs2_write_zero_page() 802 ret = __block_write_begin(page, block_start + 1, 0, in ocfs2_write_zero_page() 811 ret = block_commit_write(page, block_start + 1, in ocfs2_write_zero_page() 812 block_start + 1); in ocfs2_write_zero_page()
|
/fs/ |
D | buffer.c | 1906 unsigned int block_start, block_end; in page_zero_new_buffers() local 1914 block_start = 0; in page_zero_new_buffers() 1916 block_end = block_start + bh->b_size; in page_zero_new_buffers() 1919 if (block_end > from && block_start < to) { in page_zero_new_buffers() 1923 start = max(from, block_start); in page_zero_new_buffers() 1935 block_start = block_end; in page_zero_new_buffers() 2002 unsigned block_start, block_end; in __block_write_begin_int() local 2019 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int() 2020 block++, block_start=block_end, bh = bh->b_this_page) { in __block_write_begin_int() 2021 block_end = block_start + blocksize; in __block_write_begin_int() [all …]
|
/fs/nilfs2/ |
D | page.c | 433 unsigned int block_start, block_end; in nilfs_page_count_clean_buffers() local 437 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers() 438 bh != head || !block_start; in nilfs_page_count_clean_buffers() 439 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers() 440 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers() 441 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
|
/fs/ext4/ |
D | move_extent.c | 174 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local 188 for (bh = head, block_start = 0; bh != head || !block_start; in mext_page_mkuptodate() 189 block++, block_start = block_end, bh = bh->b_this_page) { in mext_page_mkuptodate() 190 block_end = block_start + blocksize; in mext_page_mkuptodate() 191 if (block_end <= from || block_start >= to) { in mext_page_mkuptodate() 205 zero_user(page, block_start, blocksize); in mext_page_mkuptodate()
|
D | page-io.c | 440 unsigned block_start; in ext4_bio_write_page() local 476 block_start = bh_offset(bh); in ext4_bio_write_page() 477 if (block_start >= len) { in ext4_bio_write_page()
|
D | inode.c | 988 unsigned block_start, block_end; in ext4_walk_page_buffers() local 993 for (bh = head, block_start = 0; in ext4_walk_page_buffers() 994 ret == 0 && (bh != head || !block_start); in ext4_walk_page_buffers() 995 block_start = block_end, bh = next) { in ext4_walk_page_buffers() 997 block_end = block_start + blocksize; in ext4_walk_page_buffers() 998 if (block_end <= from || block_start >= to) { in ext4_walk_page_buffers() 1067 unsigned block_start, block_end; in ext4_block_write_begin() local 1087 for (bh = head, block_start = 0; bh != head || !block_start; in ext4_block_write_begin() 1088 block++, block_start = block_end, bh = bh->b_this_page) { in ext4_block_write_begin() 1089 block_end = block_start + blocksize; in ext4_block_write_begin() [all …]
|
/fs/ntfs/ |
D | mft.c | 464 unsigned int block_start, block_end, m_start, m_end, page_ofs; in ntfs_sync_mft_mirror() local 513 block_start = 0; in ntfs_sync_mft_mirror() 517 block_end = block_start + blocksize; in ntfs_sync_mft_mirror() 521 if (unlikely(block_start >= m_end)) in ntfs_sync_mft_mirror() 532 (block_start - m_start); in ntfs_sync_mft_mirror() 568 BUG_ON(!nr_bhs && (m_start != block_start)); in ntfs_sync_mft_mirror() 572 } while (block_start = block_end, (bh = bh->b_this_page) != head); in ntfs_sync_mft_mirror() 670 unsigned int block_start, block_end, m_start, m_end; in write_mft_record_nolock() local 693 block_start = 0; in write_mft_record_nolock() 697 block_end = block_start + blocksize; in write_mft_record_nolock() [all …]
|
/fs/iomap/ |
D | buffered-io.c | 509 static int iomap_read_folio_sync(loff_t block_start, struct folio *folio, in iomap_read_folio_sync() argument 516 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_folio_sync() 527 loff_t block_start = round_down(pos, block_size); in __iomap_write_begin() local 542 iomap_adjust_read_range(iter->inode, folio, &block_start, in __iomap_write_begin() 543 block_end - block_start, &poff, &plen); in __iomap_write_begin() 552 if (iomap_block_needs_zeroing(iter, block_start)) { in __iomap_write_begin() 562 status = iomap_read_folio_sync(block_start, folio, in __iomap_write_begin() 568 } while ((block_start += plen) < block_end); in __iomap_write_begin()
|
/fs/jbd2/ |
D | journal.c | 1774 unsigned long long phys_block, block_start, block_stop; /* physical */ in __jbd2_journal_erase() local 1792 block_start = ~0ULL; in __jbd2_journal_erase() 1800 if (block_start == ~0ULL) { in __jbd2_journal_erase() 1801 block_start = phys_block; in __jbd2_journal_erase() 1802 block_stop = block_start - 1; in __jbd2_journal_erase() 1827 byte_start = block_start * journal->j_blocksize; in __jbd2_journal_erase() 1829 byte_count = (block_stop - block_start + 1) * in __jbd2_journal_erase() 1849 err, block_start, block_stop); in __jbd2_journal_erase() 1854 block_start = ~0ULL; in __jbd2_journal_erase()
|