Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/fs/btrfs/tests/
Dinode-tests.c270 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
271 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
289 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
290 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
311 if (em->block_start != EXTENT_MAP_INLINE) { in test_btrfs_get_extent()
312 test_err("expected an inline, got %llu", em->block_start); in test_btrfs_get_extent()
339 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
340 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
362 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent()
363 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent()
[all …]
Dextent-map-tests.c27 em->start, em->len, em->block_start, in free_extent_map_tree()
70 em->block_start = 0; in test_case_1()
91 em->block_start = SZ_32K; /* avoid merging */ in test_case_1()
112 em->block_start = start; in test_case_1()
123 em->block_start != 0 || em->block_len != SZ_16K)) { in test_case_1()
127 em->block_start, em->block_len); in test_case_1()
158 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
179 em->block_start = SZ_4K; in test_case_2()
200 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
211 em->block_start != EXTENT_MAP_INLINE || em->block_len != (u64)-1)) { in test_case_2()
[all …]
/kernel/linux/linux-5.10/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()
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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/btrfs/
Dextent_map.h41 u64 block_start; member
72 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end()
74 return em->block_start + em->block_len; in extent_map_block_end()
Dextent_map.c214 ASSERT(next->block_start != EXTENT_MAP_DELALLOC && in mergable_maps()
215 prev->block_start != EXTENT_MAP_DELALLOC); in mergable_maps()
224 ((next->block_start == EXTENT_MAP_HOLE && in mergable_maps()
225 prev->block_start == EXTENT_MAP_HOLE) || in mergable_maps()
226 (next->block_start == EXTENT_MAP_INLINE && in mergable_maps()
227 prev->block_start == EXTENT_MAP_INLINE) || in mergable_maps()
228 (next->block_start < EXTENT_MAP_LAST_BYTE - 1 && in mergable_maps()
229 next->block_start == extent_map_block_end(prev)))) { in mergable_maps()
260 em->block_start = merge->block_start; in try_merge_map()
568 if (em->block_start < EXTENT_MAP_LAST_BYTE && in merge_extent_mapping()
[all …]
Dinode.c89 u64 len, u64 orig_start, u64 block_start,
947 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint()
950 if (em && em->block_start < EXTENT_MAP_LAST_BYTE) in get_extent_allocation_hint()
951 alloc_hint = em->block_start; in get_extent_allocation_hint()
955 alloc_hint = em->block_start; in get_extent_allocation_hint()
2273 if (em->block_start != EXTENT_MAP_HOLE) in btrfs_find_new_delalloc_bytes()
4588 u64 block_start; in btrfs_truncate_block() local
4595 block_start = round_down(from, blocksize); in btrfs_truncate_block()
4596 block_end = block_start + blocksize - 1; in btrfs_truncate_block()
4599 block_start, blocksize); in btrfs_truncate_block()
[all …]
Dfile.c580 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache()
582 split->block_start = em->block_start; in btrfs_drop_extent_cache()
594 split->block_start = em->block_start; in btrfs_drop_extent_cache()
616 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache()
623 split->block_start = em->block_start; in btrfs_drop_extent_cache()
627 split->block_start = em->block_start in btrfs_drop_extent_cache()
635 split->block_start = em->block_start; in btrfs_drop_extent_cache()
2425 hole_em->block_start = EXTENT_MAP_HOLE; in fill_holes()
2465 if (em->block_start == EXTENT_MAP_HOLE) { in find_first_non_hole()
3090 if (em->block_start == EXTENT_MAP_HOLE) in btrfs_zero_range_check_range_boundary()
[all …]
Dextent_io.c2507 logical = em->block_start + logical; in btrfs_get_io_failure_record()
2509 logical = em->block_start; in btrfs_get_io_failure_record()
3152 u64 block_start; in btrfs_do_readpage() local
3227 offset = em->block_start; in btrfs_do_readpage()
3229 offset = em->block_start + extent_offset; in btrfs_do_readpage()
3232 block_start = em->block_start; in btrfs_do_readpage()
3234 block_start = EXTENT_MAP_HOLE; in btrfs_do_readpage()
3282 if (block_start == EXTENT_MAP_HOLE) { in btrfs_do_readpage()
3311 if (block_start == EXTENT_MAP_INLINE) { in btrfs_do_readpage()
3468 u64 block_start; in __extent_writepage_io() local
[all …]
Dfile-item.c1073 em->block_start = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map()
1079 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
1083 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
1089 em->block_start = EXTENT_MAP_INLINE; in btrfs_extent_item_to_extent_map()
/kernel/linux/linux-5.10/fs/cramfs/
Dinode.c833 u32 block_ptr, block_start, block_len; in cramfs_readpage() local
849 block_start = block_ptr << CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage()
858 cramfs_read(sb, block_start, 2); in cramfs_readpage()
859 block_start += 2; in cramfs_readpage()
869 block_start = OFFSET(inode) + maxblock * 4; in cramfs_readpage()
871 block_start = *(u32 *) in cramfs_readpage()
874 if (unlikely(block_start & CRAMFS_BLK_FLAG_DIRECT_PTR)) { in cramfs_readpage()
876 u32 prev_start = block_start; in cramfs_readpage()
877 block_start = prev_start & ~CRAMFS_BLK_FLAGS; in cramfs_readpage()
878 block_start <<= CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage()
[all …]
/kernel/linux/linux-5.10/fs/
Dbuffer.c1883 unsigned int block_start, block_end; in page_zero_new_buffers() local
1891 block_start = 0; in page_zero_new_buffers()
1893 block_end = block_start + bh->b_size; in page_zero_new_buffers()
1896 if (block_end > from && block_start < to) { in page_zero_new_buffers()
1900 start = max(from, block_start); in page_zero_new_buffers()
1912 block_start = block_end; in page_zero_new_buffers()
1979 unsigned block_start, block_end; in __block_write_begin_int() local
1996 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int()
1997 block++, block_start=block_end, bh = bh->b_this_page) { in __block_write_begin_int()
1998 block_end = block_start + blocksize; in __block_write_begin_int()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Daops.c425 unsigned block_start, block_end; in walk_page_buffers() local
430 for ( bh = head, block_start = 0; in walk_page_buffers()
431 ret == 0 && (bh != head || !block_start); in walk_page_buffers()
432 block_start = block_end, bh = next) in walk_page_buffers()
435 block_end = block_start + blocksize; in walk_page_buffers()
436 if (block_end <= from || block_start >= to) { in walk_page_buffers()
575 unsigned int block_start) in ocfs2_should_read_blk() argument
577 u64 offset = page_offset(page) + block_start; in ocfs2_should_read_blk()
601 unsigned int block_end, block_start; in ocfs2_map_page_blocks() local
608 for (bh = head, block_start = 0; bh != head || !block_start; in ocfs2_map_page_blocks()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_buddy.c367 u64 block_start; in i915_buddy_alloc_range() local
378 block_start = i915_buddy_block_offset(block); in i915_buddy_alloc_range()
379 block_end = block_start + i915_buddy_block_size(mm, block) - 1; in i915_buddy_alloc_range()
381 if (!overlaps(start, end, block_start, block_end)) in i915_buddy_alloc_range()
389 if (contains(start, end, block_start, block_end)) { in i915_buddy_alloc_range()
/kernel/linux/linux-5.10/fs/ext4/
Dmove_extent.c172 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()
Dpage-io.c448 unsigned block_start; in ext4_bio_write_page() local
483 block_start = bh_offset(bh); in ext4_bio_write_page()
484 if (block_start >= len) { in ext4_bio_write_page()
Dinode.c974 unsigned block_start, block_end; in ext4_walk_page_buffers() local
979 for (bh = head, block_start = 0; in ext4_walk_page_buffers()
980 ret == 0 && (bh != head || !block_start); in ext4_walk_page_buffers()
981 block_start = block_end, bh = next) { in ext4_walk_page_buffers()
983 block_end = block_start + blocksize; in ext4_walk_page_buffers()
984 if (block_end <= from || block_start >= to) { in ext4_walk_page_buffers()
1052 unsigned block_start, block_end; in ext4_block_write_begin() local
1072 for (bh = head, block_start = 0; bh != head || !block_start; in ext4_block_write_begin()
1073 block++, block_start = block_end, bh = bh->b_this_page) { in ext4_block_write_begin()
1074 block_end = block_start + blocksize; in ext4_block_write_begin()
[all …]
/kernel/linux/linux-5.10/lib/zlib_deflate/
Ddeflate.c539 s->block_start = 0L; in lm_init()
768 s->block_start -= (long) wsize; in fill_window()
832 zlib_tr_flush_block(s, (s->block_start >= 0L ? \
833 (char *)&s->window[(unsigned)s->block_start] : \
835 (ulg)((long)s->strstart - s->block_start), \
837 s->block_start = s->strstart; \
878 s->block_start >= (long)s->w_size, "slide too late"); in deflate_stored()
885 Assert(s->block_start >= 0L, "block gone"); in deflate_stored()
891 max_start = s->block_start + max_block_size; in deflate_stored()
901 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
/kernel/linux/linux-5.10/fs/nilfs2/
Dpage.c425 unsigned int block_start, block_end; in nilfs_page_count_clean_buffers() local
429 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
430 bh != head || !block_start; in nilfs_page_count_clean_buffers()
431 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
432 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
433 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/mm/
Dmmu.c1177 phys_addr_t block_start, block_end, memblock_limit = 0; in adjust_lowmem_bounds() local
1194 for_each_mem_range(i, &block_start, &block_end) { in adjust_lowmem_bounds()
1195 if (!IS_ALIGNED(block_start, PMD_SIZE)) { in adjust_lowmem_bounds()
1198 len = round_up(block_start, PMD_SIZE) - block_start; in adjust_lowmem_bounds()
1199 memblock_mark_nomap(block_start, len); in adjust_lowmem_bounds()
1204 for_each_mem_range(i, &block_start, &block_end) { in adjust_lowmem_bounds()
1205 if (block_start < vmalloc_limit) { in adjust_lowmem_bounds()
1231 if (!IS_ALIGNED(block_start, PMD_SIZE)) in adjust_lowmem_bounds()
1232 memblock_limit = block_start; in adjust_lowmem_bounds()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/fs/iomap/
Dbuffered-io.c536 iomap_read_page_sync(loff_t block_start, struct page *page, unsigned poff, in iomap_read_page_sync() argument
544 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_page_sync()
556 loff_t block_start = round_down(pos, block_size); in __iomap_write_begin() local
565 iomap_adjust_read_range(inode, iop, &block_start, in __iomap_write_begin()
566 block_end - block_start, &poff, &plen); in __iomap_write_begin()
575 if (iomap_block_needs_zeroing(inode, srcmap, block_start)) { in __iomap_write_begin()
580 int status = iomap_read_page_sync(block_start, page, in __iomap_write_begin()
586 } while ((block_start += plen) < block_end); in __iomap_write_begin()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c503 int block_start, int block_end) in mlxsw_afk_clear() argument
507 for (i = block_start; i <= block_end; i++) in mlxsw_afk_clear()
Dcore_acl_flex_keys.h220 int block_start, int block_end);

12