Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/btrfs/tests/
Dextent-map-tests.c24 em->start, em->len, em->block_start, in free_extent_map_tree()
66 em->block_start = 0; in test_case_1()
79 em->block_start = SZ_32K; /* avoid merging */ in test_case_1()
92 em->block_start = start; in test_case_1()
99 em->block_start != 0 || em->block_len != SZ_16K)) in test_case_1()
103 em->block_start, em->block_len); in test_case_1()
130 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
143 em->block_start = SZ_4K; in test_case_2()
156 em->block_start = EXTENT_MAP_INLINE; in test_case_2()
163 em->block_start != EXTENT_MAP_INLINE || em->block_len != (u64)-1)) in test_case_2()
[all …]
Dinode-tests.c274 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
275 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
293 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
294 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
315 if (em->block_start != EXTENT_MAP_INLINE) { in test_btrfs_get_extent()
316 test_err("expected an inline, got %llu", em->block_start); in test_btrfs_get_extent()
343 if (em->block_start != EXTENT_MAP_HOLE) { in test_btrfs_get_extent()
344 test_err("expected a hole, got %llu", em->block_start); in test_btrfs_get_extent()
366 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in test_btrfs_get_extent()
367 test_err("expected a real extent, got %llu", em->block_start); in test_btrfs_get_extent()
[all …]
/Linux-v4.19/fs/isofs/
Dcompress.c45 static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, in zisofs_uncompress_block() argument
54 int i, block_size = block_end - block_start; in zisofs_uncompress_block()
59 int needblocks = (block_size + (block_start & bufmask) + bufmask) in zisofs_uncompress_block()
83 blocknum = block_start >> bufshift; in zisofs_uncompress_block()
144 (block_start & bufmask); in zisofs_uncompress_block()
146 (block_start & bufmask), in zisofs_uncompress_block()
149 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-v4.19/fs/reiserfs/
Dfile.c179 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()
/Linux-v4.19/fs/btrfs/
Dextent_map.h33 u64 block_start; member
71 if (em->block_start + em->block_len < em->block_start) in extent_map_block_end()
73 return em->block_start + em->block_len; in extent_map_block_end()
Dextent_map.c213 ((next->block_start == EXTENT_MAP_HOLE && in mergable_maps()
214 prev->block_start == EXTENT_MAP_HOLE) || in mergable_maps()
215 (next->block_start == EXTENT_MAP_INLINE && in mergable_maps()
216 prev->block_start == EXTENT_MAP_INLINE) || in mergable_maps()
217 (next->block_start == EXTENT_MAP_DELALLOC && in mergable_maps()
218 prev->block_start == EXTENT_MAP_DELALLOC) || in mergable_maps()
219 (next->block_start < EXTENT_MAP_LAST_BYTE - 1 && in mergable_maps()
220 next->block_start == extent_map_block_end(prev)))) { in mergable_maps()
240 em->block_start = merge->block_start; in try_merge_map()
511 if (em->block_start < EXTENT_MAP_LAST_BYTE && in merge_extent_mapping()
[all …]
Dfile.c484 if (em->block_start != EXTENT_MAP_HOLE) in btrfs_find_new_delalloc_bytes()
641 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache()
643 split->block_start = em->block_start; in btrfs_drop_extent_cache()
655 split->block_start = em->block_start; in btrfs_drop_extent_cache()
679 if (em->block_start < EXTENT_MAP_LAST_BYTE) { in btrfs_drop_extent_cache()
686 split->block_start = em->block_start; in btrfs_drop_extent_cache()
690 split->block_start = em->block_start in btrfs_drop_extent_cache()
698 split->block_start = em->block_start; in btrfs_drop_extent_cache()
2305 hole_em->block_start = EXTENT_MAP_HOLE; in fill_holes()
2346 if (em->block_start == EXTENT_MAP_HOLE) { in find_first_non_hole()
[all …]
Dextent_io.c2204 logical = em->block_start + logical; in btrfs_get_io_failure_record()
2206 logical = em->block_start; in btrfs_get_io_failure_record()
2884 u64 block_start; in __do_readpage() local
2959 offset = em->block_start; in __do_readpage()
2961 offset = em->block_start + extent_offset; in __do_readpage()
2965 block_start = em->block_start; in __do_readpage()
2967 block_start = EXTENT_MAP_HOLE; in __do_readpage()
3015 if (block_start == EXTENT_MAP_HOLE) { in __do_readpage()
3044 if (block_start == EXTENT_MAP_INLINE) { in __do_readpage()
3310 u64 block_start; in __extent_writepage_io() local
[all …]
Dinode.c96 u64 orig_start, u64 block_start,
905 if (em->block_start >= EXTENT_MAP_LAST_BYTE) { in get_extent_allocation_hint()
908 if (em && em->block_start < EXTENT_MAP_LAST_BYTE) in get_extent_allocation_hint()
909 alloc_hint = em->block_start; in get_extent_allocation_hint()
913 alloc_hint = em->block_start; in get_extent_allocation_hint()
4846 u64 block_start; in btrfs_truncate_block() local
4853 block_start = round_down(from, blocksize); in btrfs_truncate_block()
4854 block_end = block_start + blocksize - 1; in btrfs_truncate_block()
4857 block_start, blocksize); in btrfs_truncate_block()
4865 block_start, blocksize, true); in btrfs_truncate_block()
[all …]
Dfile-item.c960 em->block_start = EXTENT_MAP_HOLE; in btrfs_extent_item_to_extent_map()
966 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
970 em->block_start = bytenr; in btrfs_extent_item_to_extent_map()
976 em->block_start = EXTENT_MAP_INLINE; in btrfs_extent_item_to_extent_map()
/Linux-v4.19/fs/cramfs/
Dinode.c828 u32 block_ptr, block_start, block_len; in cramfs_readpage() local
844 block_start = block_ptr << CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage()
853 cramfs_read(sb, block_start, 2); in cramfs_readpage()
854 block_start += 2; in cramfs_readpage()
864 block_start = OFFSET(inode) + maxblock * 4; in cramfs_readpage()
866 block_start = *(u32 *) in cramfs_readpage()
869 if (unlikely(block_start & CRAMFS_BLK_FLAG_DIRECT_PTR)) { in cramfs_readpage()
871 u32 prev_start = block_start; in cramfs_readpage()
872 block_start = prev_start & ~CRAMFS_BLK_FLAGS; in cramfs_readpage()
873 block_start <<= CRAMFS_BLK_DIRECT_PTR_SHIFT; in cramfs_readpage()
[all …]
/Linux-v4.19/fs/
Dbuffer.c1838 unsigned int block_start, block_end; in page_zero_new_buffers() local
1846 block_start = 0; in page_zero_new_buffers()
1848 block_end = block_start + bh->b_size; in page_zero_new_buffers()
1851 if (block_end > from && block_start < to) { in page_zero_new_buffers()
1855 start = max(from, block_start); in page_zero_new_buffers()
1867 block_start = block_end; in page_zero_new_buffers()
1934 unsigned block_start, block_end; in __block_write_begin_int() local
1951 for(bh = head, block_start = 0; bh != head || !block_start; in __block_write_begin_int()
1952 block++, block_start=block_end, bh = bh->b_this_page) { in __block_write_begin_int()
1953 block_end = block_start + blocksize; in __block_write_begin_int()
[all …]
Diomap.c583 iomap_read_page_sync(struct inode *inode, loff_t block_start, struct page *page, in iomap_read_page_sync() argument
590 if (iomap->type != IOMAP_MAPPED || block_start >= i_size_read(inode)) { in iomap_read_page_sync()
598 bio.bi_iter.bi_sector = iomap_sector(iomap, block_start); in iomap_read_page_sync()
610 loff_t block_start = pos & ~(block_size - 1); in __iomap_write_begin() local
619 iomap_adjust_read_range(inode, iop, &block_start, in __iomap_write_begin()
620 block_end - block_start, &poff, &plen); in __iomap_write_begin()
626 status = iomap_read_page_sync(inode, block_start, page, in __iomap_write_begin()
632 } while ((block_start += plen) < block_end); in __iomap_write_begin()
/Linux-v4.19/fs/ocfs2/
Daops.c447 unsigned block_start, block_end; in walk_page_buffers() local
452 for ( bh = head, block_start = 0; in walk_page_buffers()
453 ret == 0 && (bh != head || !block_start); in walk_page_buffers()
454 block_start = block_end, bh = next) in walk_page_buffers()
457 block_end = block_start + blocksize; in walk_page_buffers()
458 if (block_end <= from || block_start >= to) { in walk_page_buffers()
597 unsigned int block_start) in ocfs2_should_read_blk() argument
599 u64 offset = page_offset(page) + block_start; in ocfs2_should_read_blk()
623 unsigned int block_end, block_start; in ocfs2_map_page_blocks() local
630 for (bh = head, block_start = 0; bh != head || !block_start; in ocfs2_map_page_blocks()
[all …]
Dfile.c771 unsigned zero_from, zero_to, block_start, block_end; in ocfs2_write_zero_page() local
804 for (block_start = zero_from; block_start < zero_to; in ocfs2_write_zero_page()
805 block_start = block_end) { in ocfs2_write_zero_page()
806 block_end = block_start + i_blocksize(inode); in ocfs2_write_zero_page()
813 ret = __block_write_begin(page, block_start + 1, 0, in ocfs2_write_zero_page()
822 ret = block_commit_write(page, block_start + 1, in ocfs2_write_zero_page()
823 block_start + 1); in ocfs2_write_zero_page()
/Linux-v4.19/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.c420 unsigned block_start; in ext4_bio_write_page() local
455 block_start = bh_offset(bh); in ext4_bio_write_page()
456 if (block_start >= len) { in ext4_bio_write_page()
Dinode.c1082 unsigned block_start, block_end; in ext4_walk_page_buffers() local
1087 for (bh = head, block_start = 0; in ext4_walk_page_buffers()
1088 ret == 0 && (bh != head || !block_start); in ext4_walk_page_buffers()
1089 block_start = block_end, bh = next) { in ext4_walk_page_buffers()
1091 block_end = block_start + blocksize; in ext4_walk_page_buffers()
1092 if (block_end <= from || block_start >= to) { in ext4_walk_page_buffers()
1160 unsigned block_start, block_end; in ext4_block_write_begin() local
1179 for (bh = head, block_start = 0; bh != head || !block_start; in ext4_block_write_begin()
1180 block++, block_start = block_end, bh = bh->b_this_page) { in ext4_block_write_begin()
1181 block_end = block_start + blocksize; in ext4_block_write_begin()
[all …]
/Linux-v4.19/lib/zlib_deflate/
Ddeflate.c535 s->block_start = 0L; in lm_init()
764 s->block_start -= (long) wsize; in fill_window()
828 zlib_tr_flush_block(s, (s->block_start >= 0L ? \
829 (char *)&s->window[(unsigned)s->block_start] : \
831 (ulg)((long)s->strstart - s->block_start), \
833 s->block_start = s->strstart; \
874 s->block_start >= (long)s->w_size, "slide too late"); in deflate_stored()
881 Assert(s->block_start >= 0L, "block gone"); in deflate_stored()
887 max_start = s->block_start + max_block_size; in deflate_stored()
897 if (s->strstart - (uInt)s->block_start >= MAX_DIST(s)) { in deflate_stored()
Ddefutil.h124 long block_start; member
/Linux-v4.19/fs/nilfs2/
Dpage.c429 unsigned int block_start, block_end; in nilfs_page_count_clean_buffers() local
433 for (bh = head = page_buffers(page), block_start = 0; in nilfs_page_count_clean_buffers()
434 bh != head || !block_start; in nilfs_page_count_clean_buffers()
435 block_start = block_end, bh = bh->b_this_page) { in nilfs_page_count_clean_buffers()
436 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
437 if (block_end > from && block_start < to && !buffer_dirty(bh)) in nilfs_page_count_clean_buffers()
/Linux-v4.19/fs/ntfs/
Dmft.c478 unsigned int block_start, block_end, m_start, m_end, page_ofs; in ntfs_sync_mft_mirror() local
527 block_start = 0; in ntfs_sync_mft_mirror()
531 block_end = block_start + blocksize; in ntfs_sync_mft_mirror()
535 if (unlikely(block_start >= m_end)) in ntfs_sync_mft_mirror()
546 (block_start - m_start); in ntfs_sync_mft_mirror()
582 BUG_ON(!nr_bhs && (m_start != block_start)); in ntfs_sync_mft_mirror()
586 } while (block_start = block_end, (bh = bh->b_this_page) != head); in ntfs_sync_mft_mirror()
684 unsigned int block_start, block_end, m_start, m_end; in write_mft_record_nolock() local
707 block_start = 0; in write_mft_record_nolock()
711 block_end = block_start + blocksize; in write_mft_record_nolock()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_acl_flex_keys.c429 char *key, char *mask, int block_start, int block_end) in mlxsw_afk_encode() argument
437 for (i = block_start; i <= block_end; i++) { in mlxsw_afk_encode()
Dcore_acl_flex_keys.h231 char *key, char *mask, int block_start, int block_end);
/Linux-v4.19/sound/soc/intel/common/
Dsst-firmware.c585 u32 block_start = SST_HSW_BLOCK_ANY; in block_alloc_contiguous() local
608 if (block->offset < block_start) in block_alloc_contiguous()
609 block_start = block->offset; in block_alloc_contiguous()

12