• Home
  • Raw
  • Download

Lines Matching refs:cur

1577 	unsigned int cur = pg_offset;  in submit_extent_page()  local
1589 while (cur < pg_offset + size) { in submit_extent_page()
1590 u32 offset = cur - pg_offset; in submit_extent_page()
1597 page_offset(page) + cur, in submit_extent_page()
1629 cur += added; in submit_extent_page()
1749 u64 cur = start; in btrfs_do_readpage() local
1787 while (cur <= end) { in btrfs_do_readpage()
1792 ASSERT(IS_ALIGNED(cur, fs_info->sectorsize)); in btrfs_do_readpage()
1793 if (cur >= last_byte) { in btrfs_do_readpage()
1798 set_extent_uptodate(tree, cur, cur + iosize - 1, in btrfs_do_readpage()
1800 unlock_extent(tree, cur, cur + iosize - 1, &cached); in btrfs_do_readpage()
1801 end_page_read(page, true, cur, iosize); in btrfs_do_readpage()
1804 em = __get_extent_map(inode, page, pg_offset, cur, in btrfs_do_readpage()
1805 end - cur + 1, em_cached); in btrfs_do_readpage()
1807 unlock_extent(tree, cur, end, NULL); in btrfs_do_readpage()
1808 end_page_read(page, false, cur, end + 1 - cur); in btrfs_do_readpage()
1812 extent_offset = cur - em->start; in btrfs_do_readpage()
1813 BUG_ON(extent_map_end(em) <= cur); in btrfs_do_readpage()
1814 BUG_ON(end < cur); in btrfs_do_readpage()
1819 iosize = min(extent_map_end(em) - cur, end - cur + 1); in btrfs_do_readpage()
1880 set_extent_uptodate(tree, cur, cur + iosize - 1, in btrfs_do_readpage()
1882 unlock_extent(tree, cur, cur + iosize - 1, &cached); in btrfs_do_readpage()
1883 end_page_read(page, true, cur, iosize); in btrfs_do_readpage()
1884 cur = cur + iosize; in btrfs_do_readpage()
1890 unlock_extent(tree, cur, cur + iosize - 1, NULL); in btrfs_do_readpage()
1891 end_page_read(page, true, cur, iosize); in btrfs_do_readpage()
1892 cur = cur + iosize; in btrfs_do_readpage()
1906 unlock_extent(tree, cur, end, NULL); in btrfs_do_readpage()
1907 end_page_read(page, false, cur, end + 1 - cur); in btrfs_do_readpage()
1910 cur = cur + iosize; in btrfs_do_readpage()
2092 u64 cur = page_offset(page); in __extent_writepage_io() local
2093 u64 end = cur + PAGE_SIZE - 1; in __extent_writepage_io()
2120 while (cur <= end) { in __extent_writepage_io()
2123 u64 dirty_range_start = cur; in __extent_writepage_io()
2127 if (cur >= i_size) { in __extent_writepage_io()
2128 btrfs_writepage_endio_finish_ordered(inode, page, cur, in __extent_writepage_io()
2138 btrfs_page_clear_dirty(fs_info, page, cur, end + 1 - cur); in __extent_writepage_io()
2144 if (cur < dirty_range_start) { in __extent_writepage_io()
2145 cur = dirty_range_start; in __extent_writepage_io()
2149 em = btrfs_get_extent(inode, NULL, 0, cur, end - cur + 1); in __extent_writepage_io()
2151 btrfs_page_set_error(fs_info, page, cur, end - cur + 1); in __extent_writepage_io()
2159 extent_offset = cur - em->start; in __extent_writepage_io()
2161 ASSERT(cur <= em_end); in __extent_writepage_io()
2162 ASSERT(cur < end); in __extent_writepage_io()
2173 iosize = min(min(em_end, end + 1), dirty_range_end) - cur; in __extent_writepage_io()
2191 page, cur, cur + iosize - 1, true); in __extent_writepage_io()
2192 btrfs_page_clear_dirty(fs_info, page, cur, iosize); in __extent_writepage_io()
2193 cur += iosize; in __extent_writepage_io()
2197 btrfs_set_range_writeback(inode, cur, cur + iosize - 1); in __extent_writepage_io()
2201 page->index, cur, end); in __extent_writepage_io()
2210 btrfs_page_clear_dirty(fs_info, page, cur, iosize); in __extent_writepage_io()
2215 cur - page_offset(page), in __extent_writepage_io()
2222 btrfs_page_set_error(fs_info, page, cur, iosize); in __extent_writepage_io()
2224 btrfs_page_clear_writeback(fs_info, page, cur, in __extent_writepage_io()
2228 cur += iosize; in __extent_writepage_io()
3259 u64 cur = start; in extent_write_locked_range() local
3282 while (cur <= end) { in extent_write_locked_range()
3283 u64 cur_end = min(round_down(cur, PAGE_SIZE) + PAGE_SIZE - 1, end); in extent_write_locked_range()
3285 page = find_get_page(mapping, cur >> PAGE_SHIFT); in extent_write_locked_range()
3301 cur = cur_end + 1; in extent_write_locked_range()
5191 size_t cur; in read_extent_buffer() local
5212 cur = min(len, (PAGE_SIZE - offset)); in read_extent_buffer()
5214 memcpy(dst, kaddr + offset, cur); in read_extent_buffer()
5216 dst += cur; in read_extent_buffer()
5217 len -= cur; in read_extent_buffer()
5227 size_t cur; in read_extent_buffer_to_user_nofault() local
5243 cur = min(len, (PAGE_SIZE - offset)); in read_extent_buffer_to_user_nofault()
5245 if (copy_to_user_nofault(dst, kaddr + offset, cur)) { in read_extent_buffer_to_user_nofault()
5250 dst += cur; in read_extent_buffer_to_user_nofault()
5251 len -= cur; in read_extent_buffer_to_user_nofault()
5262 size_t cur; in memcmp_extent_buffer() local
5278 cur = min(len, (PAGE_SIZE - offset)); in memcmp_extent_buffer()
5281 ret = memcmp(ptr, kaddr + offset, cur); in memcmp_extent_buffer()
5285 ptr += cur; in memcmp_extent_buffer()
5286 len -= cur; in memcmp_extent_buffer()
5350 size_t cur; in write_extent_buffer() local
5368 cur = min(len, PAGE_SIZE - offset); in write_extent_buffer()
5370 memcpy(kaddr + offset, src, cur); in write_extent_buffer()
5372 src += cur; in write_extent_buffer()
5373 len -= cur; in write_extent_buffer()
5382 size_t cur; in memzero_extent_buffer() local
5397 cur = min(len, PAGE_SIZE - offset); in memzero_extent_buffer()
5399 memset(kaddr + offset, 0, cur); in memzero_extent_buffer()
5401 len -= cur; in memzero_extent_buffer()
5437 size_t cur; in copy_extent_buffer() local
5455 cur = min(len, (unsigned long)(PAGE_SIZE - offset)); in copy_extent_buffer()
5458 read_extent_buffer(src, kaddr + offset, src_offset, cur); in copy_extent_buffer()
5460 src_offset += cur; in copy_extent_buffer()
5461 len -= cur; in copy_extent_buffer()
5636 size_t cur; in memcpy_extent_buffer() local
5653 cur = min(len, (unsigned long)(PAGE_SIZE - in memcpy_extent_buffer()
5655 cur = min_t(unsigned long, cur, in memcpy_extent_buffer()
5659 dst_off_in_page, src_off_in_page, cur); in memcpy_extent_buffer()
5661 src_offset += cur; in memcpy_extent_buffer()
5662 dst_offset += cur; in memcpy_extent_buffer()
5663 len -= cur; in memcpy_extent_buffer()
5671 size_t cur; in memmove_extent_buffer() local
5693 cur = min_t(unsigned long, len, src_off_in_page + 1); in memmove_extent_buffer()
5694 cur = min(cur, dst_off_in_page + 1); in memmove_extent_buffer()
5696 dst_off_in_page - cur + 1, in memmove_extent_buffer()
5697 src_off_in_page - cur + 1, cur); in memmove_extent_buffer()
5699 dst_end -= cur; in memmove_extent_buffer()
5700 src_end -= cur; in memmove_extent_buffer()
5701 len -= cur; in memmove_extent_buffer()
5712 u64 cur = page_start; in get_next_extent_buffer() local
5717 while (cur < page_start + PAGE_SIZE) { in get_next_extent_buffer()
5722 (void **)gang, cur >> fs_info->sectorsize_bits, in get_next_extent_buffer()
5737 cur = gang[ret - 1]->start + gang[ret - 1]->len; in get_next_extent_buffer()
5746 u64 cur = page_offset(page); in try_release_subpage_extent_buffer() local
5750 while (cur < end) { in try_release_subpage_extent_buffer()
5762 eb = get_next_extent_buffer(fs_info, page, cur); in try_release_subpage_extent_buffer()
5768 cur = eb->start + eb->len; in try_release_subpage_extent_buffer()