Lines Matching refs:block_start
1628 unsigned block_start, block_end; in __block_prepare_write() local
1643 for(bh = head, block_start = 0; bh != head || !block_start; in __block_prepare_write()
1644 block++, block_start=block_end, bh = bh->b_this_page) { in __block_prepare_write()
1647 block_end = block_start+blocksize; in __block_prepare_write()
1650 if (block_start >= to) in __block_prepare_write()
1665 if (block_start < from) in __block_prepare_write()
1666 memset(kaddr+block_start, 0, from-block_start); in __block_prepare_write()
1667 if (block_end > to || block_start < from) in __block_prepare_write()
1677 (block_start < from || block_end > to)) { in __block_prepare_write()
1709 to = block_start; /* stop at the last successfully handled block */ in __block_prepare_write()
1710 block_start = 0; in __block_prepare_write()
1712 block_end = block_start+blocksize; in __block_prepare_write()
1715 if (block_start >= to) in __block_prepare_write()
1718 memset(kaddr+block_start, 0, bh->b_size); in __block_prepare_write()
1724 block_start = block_end; in __block_prepare_write()
1733 unsigned block_start, block_end; in __block_commit_write() local
1740 for(bh = head = page->buffers, block_start = 0; in __block_commit_write()
1741 bh != head || !block_start; in __block_commit_write()
1742 block_start=block_end, bh = bh->b_this_page) { in __block_commit_write()
1743 block_end = block_start + blocksize; in __block_commit_write()
1744 if (block_end <= from || block_start >= to) { in __block_commit_write()