/fs/btrfs/tests/ |
D | inode-tests.c | 272 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 273 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 291 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 292 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 313 if (em->block_start != EXTENT_MAP_INLINE) { in test_btrfs_get_extent() 314 test_err("expected an inline, got %llu", em->block_start); in test_btrfs_get_extent() 341 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent() 342 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent() 364 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent() 365 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent() [all …]
|
D | extent-map-tests.c | 24 em->start, em->len, em->block_start, in free_extent_map_tree() 67 em->block_start = 0; in test_case_1() 88 em->block_start = SZ_32K; /* avoid merging */ in test_case_1() 109 em->block_start = start; in test_case_1() 120 em->block_start != 0 || em->block_len != SZ_16K)) { in test_case_1() 124 em->block_start, em->block_len); in test_case_1() 155 em->block_start = EXTENT_MAP_INLINE; in test_case_2() 176 em->block_start = SZ_4K; in test_case_2() 197 em->block_start = EXTENT_MAP_INLINE; in test_case_2() 208 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() 78 blocknum = block_start >> bufshift; in zisofs_uncompress_block() 139 (block_start & bufmask); in zisofs_uncompress_block() 141 (block_start & bufmask), in zisofs_uncompress_block() 144 block_start = 0; in zisofs_uncompress_block() 205 loff_t block_start, block_end; in zisofs_fill_pages() local 241 block_start = le32_to_cpu(*(__le32 *) in zisofs_fill_pages() 257 if (block_start > block_end) { in zisofs_fill_pages() [all …]
|
/fs/cramfs/ |
D | inode.c | 834 u32 block_ptr, block_start, block_len; in cramfs_readpage() local 850 block_start = block_ptr << CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage() 859 cramfs_read(sb, block_start, 2); in cramfs_readpage() 860 block_start += 2; in cramfs_readpage() 870 block_start = OFFSET(inode) + maxblock * 4; in cramfs_readpage() 872 block_start = *(u32 *) in cramfs_readpage() 875 if (unlikely(block_start & CRAMFS_BLK_FLAG_DIRECT_PTR)) { in cramfs_readpage() 877 u32 prev_start = block_start; in cramfs_readpage() 878 block_start = prev_start & ~CRAMFS_BLK_FLAGS; in cramfs_readpage() 879 block_start <<= CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage() [all …]
|
/fs/reiserfs/ |
D | file.c | 179 unsigned block_start, block_end; in reiserfs_commit_page() local 201 for (bh = head = page_buffers(page), block_start = 0; in reiserfs_commit_page() 202 bh != head || !block_start; in reiserfs_commit_page() 203 block_start = block_end, bh = bh->b_this_page) { in reiserfs_commit_page() 207 block_end = block_start + blocksize; in reiserfs_commit_page() 208 if (block_end <= from || block_start >= to) { in reiserfs_commit_page()
|
/fs/btrfs/ |
D | extent_map.c | 214 ASSERT(next->block_start != EXTENT_MAP_DELALLOC && in mergable_maps() 215 prev->block_start != EXTENT_MAP_DELALLOC); in mergable_maps() 220 ((next->block_start == EXTENT_MAP_HOLE && in mergable_maps() 221 prev->block_start == EXTENT_MAP_HOLE) || in mergable_maps() 222 (next->block_start == EXTENT_MAP_INLINE && in mergable_maps() 223 prev->block_start == EXTENT_MAP_INLINE) || in mergable_maps() 224 (next->block_start < EXTENT_MAP_LAST_BYTE - 1 && in mergable_maps() 225 next->block_start == extent_map_block_end(prev)))) { in mergable_maps() 245 em->block_start = merge->block_start; in try_merge_map() 553 if (em->block_start < EXTENT_MAP_LAST_BYTE && in merge_extent_mapping() [all …]
|
D | extent_map.h | 41 u64 block_start; member 79 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end() 81 return em->block_start + em->block_len; in extent_map_block_end()
|
D | file.c | 485 if (em->block_start != EXTENT_MAP_HOLE) in btrfs_find_new_delalloc_bytes() 650 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache() 652 split->block_start = em->block_start; in btrfs_drop_extent_cache() 664 split->block_start = em->block_start; in btrfs_drop_extent_cache() 688 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache() 695 split->block_start = em->block_start; in btrfs_drop_extent_cache() 699 split->block_start = em->block_start in btrfs_drop_extent_cache() 707 split->block_start = em->block_start; in btrfs_drop_extent_cache() 2360 hole_em->block_start = EXTENT_MAP_HOLE; in fill_holes() 2401 if (em->block_start == EXTENT_MAP_HOLE) { in find_first_non_hole() [all …]
|
D | inode.c | 88 u64 orig_start, u64 block_start, 936 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint() 939 if (em && em->block_start < EXTENT_MAP_LAST_BYTE) in get_extent_allocation_hint() 940 alloc_hint = em->block_start; in get_extent_allocation_hint() 944 alloc_hint = em->block_start; in get_extent_allocation_hint() 4979 u64 block_start; in btrfs_truncate_block() local 4986 block_start = round_down(from, blocksize); in btrfs_truncate_block() 4987 block_end = block_start + blocksize - 1; in btrfs_truncate_block() 4990 block_start, blocksize); in btrfs_truncate_block() 4998 block_start, blocksize, true); in btrfs_truncate_block() [all …]
|
D | extent_io.c | 2416 logical = em->block_start + logical; in btrfs_get_io_failure_record() 2418 logical = em->block_start; in btrfs_get_io_failure_record() 3065 u64 block_start; in __do_readpage() local 3140 offset = em->block_start; in __do_readpage() 3142 offset = em->block_start + extent_offset; in __do_readpage() 3146 block_start = em->block_start; in __do_readpage() 3148 block_start = EXTENT_MAP_HOLE; in __do_readpage() 3196 if (block_start == EXTENT_MAP_HOLE) { in __do_readpage() 3225 if (block_start == EXTENT_MAP_INLINE) { in __do_readpage() 3420 u64 block_start; in __extent_writepage_io() local [all …]
|
D | file-item.c | 976 em->block_start = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map() 982 em->block_start = bytenr; in btrfs_extent_item_to_extent_map() 986 em->block_start = bytenr; in btrfs_extent_item_to_extent_map() 992 em->block_start = EXTENT_MAP_INLINE; in btrfs_extent_item_to_extent_map()
|
D | tree-log.c | 4293 em->block_start == EXTENT_MAP_HOLE) in log_extent_csums() 4307 em->block_start + csum_offset, in log_extent_csums() 4308 em->block_start + csum_offset + in log_extent_csums() 4381 em->block_start, in log_one_extent() 4385 } else if (em->block_start < EXTENT_MAP_LAST_BYTE) { in log_one_extent() 4387 em->block_start - in log_one_extent() 4550 em->block_start != EXTENT_MAP_HOLE) in btrfs_log_changed_extents()
|
D | ioctl.c | 1152 if (!next || next->block_start >= EXTENT_MAP_LAST_BYTE) in defrag_check_next_extent() 1154 else if ((em->block_start + em->block_len == next->block_start) && in defrag_check_next_extent() 1185 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in should_defrag_range()
|
D | compression.c | 494 (em->block_start >> 9) != cb->orig_bio->bi_iter.bi_sector) { in add_ra_bio_pages()
|
D | relocation.c | 3237 u64 block_start) in setup_extent_mapping() argument 3251 em->block_start = block_start; in setup_extent_mapping()
|
D | volumes.c | 5141 em->block_start = 0; in __btrfs_alloc_chunk() 6774 em->block_start = 0; in read_one_chunk()
|
/fs/ |
D | buffer.c | 1841 unsigned int block_start, block_end; in page_zero_new_buffers() local 1849 block_start = 0; in page_zero_new_buffers() 1851 block_end = block_start + bh->b_size; in page_zero_new_buffers() 1854 if (block_end > from && block_start < to) { in page_zero_new_buffers() 1858 start = max(from, block_start); in page_zero_new_buffers() 1870 block_start = block_end; in page_zero_new_buffers() 1937 unsigned block_start, block_end; in __block_write_begin_int() local 1954 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int() 1955 block++, block_start=block_end, bh = bh->b_this_page) { in __block_write_begin_int() 1956 block_end = block_start + blocksize; in __block_write_begin_int() [all …]
|
/fs/ocfs2/ |
D | aops.c | 434 unsigned block_start, block_end; in walk_page_buffers() local 439 for ( bh = head, block_start = 0; in walk_page_buffers() 440 ret == 0 && (bh != head || !block_start); in walk_page_buffers() 441 block_start = block_end, bh = next) in walk_page_buffers() 444 block_end = block_start + blocksize; in walk_page_buffers() 445 if (block_end <= from || block_start >= to) { in walk_page_buffers() 584 unsigned int block_start) in ocfs2_should_read_blk() argument 586 u64 offset = page_offset(page) + block_start; in ocfs2_should_read_blk() 610 unsigned int block_end, block_start; in ocfs2_map_page_blocks() local 617 for (bh = head, block_start = 0; bh != head || !block_start; in ocfs2_map_page_blocks() [all …]
|
D | file.c | 759 unsigned zero_from, zero_to, block_start, block_end; in ocfs2_write_zero_page() local 794 for (block_start = zero_from; block_start < zero_to; in ocfs2_write_zero_page() 795 block_start = block_end) { in ocfs2_write_zero_page() 796 block_end = block_start + i_blocksize(inode); in ocfs2_write_zero_page() 803 ret = __block_write_begin(page, block_start + 1, 0, in ocfs2_write_zero_page() 812 ret = block_commit_write(page, block_start + 1, in ocfs2_write_zero_page() 813 block_start + 1); in ocfs2_write_zero_page()
|
/fs/ext4/ |
D | move_extent.c | 172 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local 186 for (bh = head, block_start = 0; bh != head || !block_start; in mext_page_mkuptodate() 187 block++, block_start = block_end, bh = bh->b_this_page) { in mext_page_mkuptodate() 188 block_end = block_start + blocksize; in mext_page_mkuptodate() 189 if (block_end <= from || block_start >= to) { in mext_page_mkuptodate() 203 zero_user(page, block_start, blocksize); in mext_page_mkuptodate()
|
D | page-io.c | 414 unsigned block_start; in ext4_bio_write_page() local 449 block_start = bh_offset(bh); in ext4_bio_write_page() 450 if (block_start >= len) { in ext4_bio_write_page()
|
D | inode.c | 1100 unsigned block_start, block_end; in ext4_walk_page_buffers() local 1105 for (bh = head, block_start = 0; in ext4_walk_page_buffers() 1106 ret == 0 && (bh != head || !block_start); in ext4_walk_page_buffers() 1107 block_start = block_end, bh = next) { in ext4_walk_page_buffers() 1109 block_end = block_start + blocksize; in ext4_walk_page_buffers() 1110 if (block_end <= from || block_start >= to) { in ext4_walk_page_buffers() 1178 unsigned block_start, block_end; in ext4_block_write_begin() local 1198 for (bh = head, block_start = 0; bh != head || !block_start; in ext4_block_write_begin() 1199 block++, block_start = block_end, bh = bh->b_this_page) { in ext4_block_write_begin() 1200 block_end = block_start + blocksize; in ext4_block_write_begin() [all …]
|
/fs/nilfs2/ |
D | page.c | 427 unsigned int block_start, block_end; in nilfs_page_count_clean_buffers() local 431 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers() 432 bh != head || !block_start; in nilfs_page_count_clean_buffers() 433 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers() 434 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers() 435 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
|
/fs/iomap/ |
D | buffered-io.c | 528 iomap_read_page_sync(struct inode *inode, loff_t block_start, struct page *page, in iomap_read_page_sync() argument 535 if (iomap->type != IOMAP_MAPPED || block_start >= i_size_read(inode)) { in iomap_read_page_sync() 543 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_page_sync() 555 loff_t block_start = pos & ~(block_size - 1); in __iomap_write_begin() local 564 iomap_adjust_read_range(inode, iop, &block_start, in __iomap_write_begin() 565 block_end - block_start, &poff, &plen); in __iomap_write_begin() 571 status = iomap_read_page_sync(inode, block_start, page, in __iomap_write_begin() 577 } while ((block_start += plen) < block_end); in __iomap_write_begin()
|
/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 …]
|