Home
last modified time | relevance | path

Searched refs:block_start (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.6.21/fs/btrfs/tests/
Dinode-tests.c267 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
268 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
286 if (em->block_start != EXTENT_MAP_INLINE) { in test_btrfs_get_extent()
287 test_err("expected an inline, got %llu", em->block_start); in test_btrfs_get_extent()
324 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
325 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
347 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent()
348 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent()
375 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent()
376 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent()
[all …]
Dextent-map-tests.c29 em->start, em->len, em->block_start, in free_extent_map_tree()
73 em->block_start = 0; in test_case_1()
94 em->block_start = SZ_32K; /* avoid merging */ in test_case_1()
115 em->block_start = start; in test_case_1()
126 em->block_start != 0 || em->block_len != SZ_16K)) { in test_case_1()
130 em->block_start, em->block_len); in test_case_1()
161 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
182 em->block_start = SZ_4K; in test_case_2()
203 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
214 em->block_start != EXTENT_MAP_INLINE || em->block_len != (u64)-1)) { in test_case_2()
[all …]
/linux-6.6.21/fs/isofs/
Dcompress.c40 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 …]
/linux-6.6.21/fs/btrfs/
Dextent_map.c210 ASSERT(next->block_start != EXTENT_MAP_DELALLOC && in mergable_maps()
211 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()
256 em->block_start = merge->block_start; in try_merge_map()
578 if (em->block_start < EXTENT_MAP_LAST_BYTE && in merge_extent_mapping()
[all …]
Dextent_map.h43 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()
Dinode.c133 u64 len, u64 orig_start, u64 block_start,
1228 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint()
1231 if (em && em->block_start < EXTENT_MAP_LAST_BYTE) in get_extent_allocation_hint()
1232 alloc_hint = em->block_start; in get_extent_allocation_hint()
1236 alloc_hint = em->block_start; in get_extent_allocation_hint()
2627 if (em->block_start != EXTENT_MAP_HOLE) in btrfs_find_new_delalloc_bytes()
4690 u64 block_start; in btrfs_truncate_block() local
4697 block_start = round_down(from, blocksize); in btrfs_truncate_block()
4698 block_end = block_start + blocksize - 1; in btrfs_truncate_block()
4700 ret = btrfs_check_data_free_space(inode, &data_reserved, block_start, in btrfs_truncate_block()
[all …]
Ddefrag.c568 em->block_start = EXTENT_MAP_HOLE; in defrag_get_extent()
685 if (!next || next->block_start >= EXTENT_MAP_LAST_BYTE) in defrag_check_next_extent()
851 if (em->block_start == EXTENT_MAP_INLINE && in defrag_collect_targets()
856 if (em->block_start == EXTENT_MAP_HOLE || in defrag_collect_targets()
857 em->block_start == EXTENT_MAP_DELALLOC || in defrag_collect_targets()
922 if (em->block_start == EXTENT_MAP_INLINE) in defrag_collect_targets()
/linux-6.6.21/kernel/sched/
Dstats.c50 u64 sleep_start, block_start; in __update_stats_enqueue_sleeper() local
53 block_start = schedstat_val(stats->block_start); in __update_stats_enqueue_sleeper()
73 if (block_start) { in __update_stats_enqueue_sleeper()
74 u64 delta = rq_clock(rq) - block_start; in __update_stats_enqueue_sleeper()
82 __schedstat_set(stats->block_start, 0); in __update_stats_enqueue_sleeper()
/linux-6.6.21/fs/reiserfs/
Dfile.c173 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()
/linux-6.6.21/fs/cramfs/
Dinode.c827 u32 block_ptr, block_start, block_len; in cramfs_read_folio() local
843 block_start = block_ptr << CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_read_folio()
852 cramfs_read(sb, block_start, 2); in cramfs_read_folio()
853 block_start += 2; in cramfs_read_folio()
863 block_start = OFFSET(inode) + maxblock * 4; in cramfs_read_folio()
865 block_start = *(u32 *) in cramfs_read_folio()
868 if (unlikely(block_start & CRAMFS_BLK_FLAG_DIRECT_PTR)) { in cramfs_read_folio()
870 u32 prev_start = block_start; in cramfs_read_folio()
871 block_start = prev_start & ~CRAMFS_BLK_FLAGS; in cramfs_read_folio()
872 block_start <<= CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_read_folio()
[all …]
/linux-6.6.21/drivers/gpu/drm/
Ddrm_buddy.c348 u64 block_start; in alloc_range_bias() local
362 block_start = drm_buddy_block_offset(block); in alloc_range_bias()
363 block_end = block_start + drm_buddy_block_size(mm, block) - 1; in alloc_range_bias()
365 if (!overlaps(start, end, block_start, block_end)) in alloc_range_bias()
371 if (block_start < start || block_end > end) { in alloc_range_bias()
372 u64 adjusted_start = max(block_start, start); in alloc_range_bias()
380 if (contains(start, end, block_start, block_end) && in alloc_range_bias()
504 u64 block_start; in __alloc_range() local
515 block_start = drm_buddy_block_offset(block); in __alloc_range()
516 block_end = block_start + drm_buddy_block_size(mm, block) - 1; in __alloc_range()
[all …]
/linux-6.6.21/drivers/fpga/
Dmicrochip-spi.c110 u32 block_start, component_size; in mpf_ops_parse_header() local
143 block_start = get_unaligned_le32(buf + block_start_offset); in mpf_ops_parse_header()
147 bitstream_start = block_start; in mpf_ops_parse_header()
148 info->header_size = block_start; in mpf_ops_parse_header()
149 if (block_start > count) in mpf_ops_parse_header()
154 components_size_start = block_start; in mpf_ops_parse_header()
/linux-6.6.21/fs/ocfs2/
Daops.c422 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 …]
/linux-6.6.21/tools/net/ynl/
Dynl-gen-c.py167 ri.cw.block_start(line=f"{kw} (type == {self.enum_name})")
1102 def block_start(self, line=''): member in CodeWriter
1191 self.block_start()
1336 cw.block_start(line=f'struct ynl_policy_attr {struct.render_name}_policy[{type_max} + 1] =')
1344 cw.block_start(line=f'struct ynl_policy_nest {struct.render_name}_nest =')
1356 cw.block_start()
1372 cw.block_start(line=f"static const char * const {map_name}[] =")
1394 cw.block_start(line=f"static const char * const {map_name}[] =")
1409 ri.cw.block_start()
1452 ri.cw.block_start()
[all …]
/linux-6.6.21/fs/
Dbuffer.c1978 size_t block_start, block_end; in folio_zero_new_buffers() local
1987 block_start = 0; in folio_zero_new_buffers()
1989 block_end = block_start + bh->b_size; in folio_zero_new_buffers()
1992 if (block_end > from && block_start < to) { in folio_zero_new_buffers()
1996 start = max(from, block_start); in folio_zero_new_buffers()
2008 block_start = block_end; in folio_zero_new_buffers()
2088 unsigned block_start, block_end; in __block_write_begin_int() local
2105 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int()
2106 block++, block_start=block_end, bh = bh->b_this_page) { in __block_write_begin_int()
2107 block_end = block_start + blocksize; in __block_write_begin_int()
[all …]
/linux-6.6.21/fs/nilfs2/
Dpage.c434 unsigned int block_start, block_end; in nilfs_page_count_clean_buffers() local
438 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
439 bh != head || !block_start; in nilfs_page_count_clean_buffers()
440 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
441 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
442 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
/linux-6.6.21/fs/ext4/
Dmove_extent.c176 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local
192 for (bh = head, block_start = 0; bh != head || !block_start; in mext_page_mkuptodate()
193 block++, block_start = block_end, bh = bh->b_this_page) { in mext_page_mkuptodate()
194 block_end = block_start + blocksize; in mext_page_mkuptodate()
195 if (block_end <= from || block_start >= to) { in mext_page_mkuptodate()
209 folio_zero_range(folio, block_start, blocksize); in mext_page_mkuptodate()
Dpage-io.c434 unsigned block_start; in ext4_bio_write_folio() local
466 block_start = bh_offset(bh); in ext4_bio_write_folio()
467 if (block_start >= len) { in ext4_bio_write_folio()
Dinode.c953 unsigned block_start, block_end; in ext4_walk_page_buffers() local
958 for (bh = head, block_start = 0; in ext4_walk_page_buffers()
959 ret == 0 && (bh != head || !block_start); in ext4_walk_page_buffers()
960 block_start = block_end, bh = next) { in ext4_walk_page_buffers()
962 block_end = block_start + blocksize; in ext4_walk_page_buffers()
963 if (block_end <= from || block_start >= to) { in ext4_walk_page_buffers()
1020 unsigned block_start, block_end; in ext4_block_write_begin() local
1042 for (bh = head, block_start = 0; bh != head || !block_start; in ext4_block_write_begin()
1043 block++, block_start = block_end, bh = bh->b_this_page) { in ext4_block_write_begin()
1044 block_end = block_start + blocksize; in ext4_block_write_begin()
[all …]
/linux-6.6.21/lib/zlib_deflate/
Ddeflate.c546 s->block_start = 0L; in lm_init()
775 s->block_start -= (long) wsize; in fill_window()
839 zlib_tr_flush_block(s, (s->block_start >= 0L ? \
840 (char *)&s->window[(unsigned)s->block_start] : \
842 (ulg)((long)s->strstart - s->block_start), \
844 s->block_start = s->strstart; \
885 s->block_start >= (long)s->w_size, "slide too late"); in deflate_stored()
892 Assert(s->block_start >= 0L, "block gone"); in deflate_stored()
898 max_start = s->block_start + max_block_size; in deflate_stored()
908 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
/linux-6.6.21/drivers/mtd/parsers/
Dafs.c227 u32 block_start; in afs_parse_v2_partition() local
281 block_start = imginfo[20]; in afs_parse_v2_partition()
287 block_start, block_end); in afs_parse_v2_partition()
/linux-6.6.21/arch/arm/mm/
Dmmu.c1198 phys_addr_t block_start, block_end, memblock_limit = 0; in adjust_lowmem_bounds() local
1216 for_each_mem_range(i, &block_start, &block_end) { in adjust_lowmem_bounds()
1217 if (!IS_ALIGNED(block_start, PMD_SIZE)) { in adjust_lowmem_bounds()
1220 len = round_up(block_start, PMD_SIZE) - block_start; in adjust_lowmem_bounds()
1221 memblock_mark_nomap(block_start, len); in adjust_lowmem_bounds()
1226 for_each_mem_range(i, &block_start, &block_end) { in adjust_lowmem_bounds()
1227 if (block_start < vmalloc_limit) { in adjust_lowmem_bounds()
1253 if (!IS_ALIGNED(block_start, PMD_SIZE)) in adjust_lowmem_bounds()
1254 memblock_limit = block_start; in adjust_lowmem_bounds()
/linux-6.6.21/fs/ntfs/
Dmft.c464 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 …]
/linux-6.6.21/fs/iomap/
Dbuffered-io.c618 static int iomap_read_folio_sync(loff_t block_start, struct folio *folio, in iomap_read_folio_sync() argument
625 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_folio_sync()
636 loff_t block_start = round_down(pos, block_size); in __iomap_write_begin() local
662 iomap_adjust_read_range(iter->inode, folio, &block_start, in __iomap_write_begin()
663 block_end - block_start, &poff, &plen); in __iomap_write_begin()
672 if (iomap_block_needs_zeroing(iter, block_start)) { in __iomap_write_begin()
682 status = iomap_read_folio_sync(block_start, folio, in __iomap_write_begin()
688 } while ((block_start += plen) < block_end); in __iomap_write_begin()
/linux-6.6.21/fs/jbd2/
Djournal.c1946 unsigned long long phys_block, block_start, block_stop; /* physical */ in __jbd2_journal_erase() local
1964 block_start = ~0ULL; in __jbd2_journal_erase()
1972 if (block_start == ~0ULL) { in __jbd2_journal_erase()
1973 block_start = phys_block; in __jbd2_journal_erase()
1974 block_stop = block_start - 1; in __jbd2_journal_erase()
1999 byte_start = block_start * journal->j_blocksize; in __jbd2_journal_erase()
2001 byte_count = (block_stop - block_start + 1) * in __jbd2_journal_erase()
2021 err, block_start, block_stop); in __jbd2_journal_erase()
2026 block_start = ~0ULL; in __jbd2_journal_erase()

12