Lines Matching refs:blocksize
657 sector_t bblock, unsigned blocksize) in write_boundary_block() argument
659 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
1662 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument
1667 head = folio_alloc_buffers(folio, blocksize, gfp); in create_empty_buffers()
1819 size_t blocksize; in __block_write_full_folio() local
1837 blocksize = bh->b_size; in __block_write_full_folio()
1839 block = div_u64(folio_pos(folio), blocksize); in __block_write_full_folio()
1840 last_block = div_u64(i_size_read(inode) - 1, blocksize); in __block_write_full_folio()
1860 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
2095 size_t blocksize; in __block_write_begin_int() local
2103 blocksize = head->b_size; in __block_write_begin_int()
2104 block = div_u64(folio_pos(folio), blocksize); in __block_write_begin_int()
2108 block_end = block_start + blocksize; in __block_write_begin_int()
2119 WARN_ON(bh->b_size != blocksize); in __block_write_begin_int()
2178 unsigned blocksize; in __block_commit_write() local
2184 blocksize = bh->b_size; in __block_commit_write()
2188 block_end = block_start + blocksize; in __block_commit_write()
2324 unsigned block_start, block_end, blocksize; in block_is_partially_uptodate() local
2332 blocksize = head->b_size; in block_is_partially_uptodate()
2335 if (from < blocksize && to > folio_size(folio) - blocksize) in block_is_partially_uptodate()
2341 block_end = block_start + blocksize; in block_is_partially_uptodate()
2370 size_t blocksize; in block_read_full_folio() local
2383 blocksize = head->b_size; in block_read_full_folio()
2385 iblock = div_u64(folio_pos(folio), blocksize); in block_read_full_folio()
2386 lblock = div_u64(limit + blocksize - 1, blocksize); in block_read_full_folio()
2400 WARN_ON(bh->b_size != blocksize); in block_read_full_folio()
2406 folio_zero_range(folio, i * blocksize, in block_read_full_folio()
2407 blocksize); in block_read_full_folio()
2490 unsigned int blocksize = i_blocksize(inode); in cont_expand_zero() local
2503 if (zerofrom & (blocksize-1)) { in cont_expand_zero()
2504 *bytes |= (blocksize-1); in cont_expand_zero()
2536 if (zerofrom & (blocksize-1)) { in cont_expand_zero()
2537 *bytes |= (blocksize-1); in cont_expand_zero()
2568 unsigned int blocksize = i_blocksize(inode); in cont_write_begin() local
2577 if (pos+len > *bytes && zerofrom & (blocksize-1)) { in cont_write_begin()
2578 *bytes |= (blocksize-1); in cont_write_begin()
2653 unsigned blocksize; in block_truncate_page() local
2661 blocksize = i_blocksize(inode); in block_truncate_page()
2662 length = from & (blocksize - 1); in block_truncate_page()
2668 length = blocksize - length; in block_truncate_page()
2677 bh = create_empty_buffers(folio, blocksize, 0); in block_truncate_page()
2681 pos = blocksize; in block_truncate_page()
2685 pos += blocksize; in block_truncate_page()
2689 WARN_ON(bh->b_size != blocksize); in block_truncate_page()