Lines Matching refs:pagenr

245 	int pagenr, offset;  in write_pages()  local
255 pagenr = to >> PAGE_SHIFT; in write_pages()
259 buf, (long)to, len, pagenr, offset); in write_pages()
273 pagenrs[0] = pagenr; in write_pages()
280 pagenrs[readpages] = pagenr + pagecnt; in write_pages()
290 if(iobuf->nr_pages && ((pagenr <= iobuf->blocks[iobuf->nr_pages-1]) in write_pages()
293 if((pagenr == iobuf->blocks[iobuf->nr_pages-1]) in write_pages()
296 ignorepage = pagenr; in write_pages()
299 pagenr, iobuf->blocks[iobuf->nr_pages-1], in write_pages()
316 pagenr, start_len, offset); in write_pages()
319 if(PageDirty(page) && pagenr != ignorepage) { in write_pages()
321 to, start_len, len, end_len, pagenr, ignorepage); in write_pages()
331 iobuf->blocks[iobuf->nr_pages] = pagenr++; in write_pages()
340 pagenr, pagesc); in write_pages()
345 DEBUG(3, "blkmtd: write: grabbing page %d from page cache\n", pagenr); in write_pages()
346 page = grab_cache_page(dev->binding->bd_inode->i_mapping, pagenr); in write_pages()
347 if(PageDirty(page) && pagenr != ignorepage) { in write_pages()
351 warn("write: cant grab cache page %d", pagenr); in write_pages()
361 iobuf->blocks[iobuf->nr_pages] = pagenr++; in write_pages()
376 pagenr, end_len); in write_pages()
379 if(PageDirty(page) && pagenr != ignorepage) { in write_pages()
381 to, start_len, len, end_len, pagenr, ignorepage); in write_pages()
391 iobuf->blocks[iobuf->nr_pages] = pagenr; in write_pages()
485 int pagenr, pages; in blkmtd_read() local
495 pagenr = from >> PAGE_SHIFT; in blkmtd_read()
496 offset = from - (pagenr << PAGE_SHIFT); in blkmtd_read()
500 pagenr, offset, pages); in blkmtd_read()
511 pagenrs[i] = pagenr+i; in blkmtd_read()
517 pagenr = 0; in blkmtd_read()
522 DEBUG(3, "blkmtd: read: looking for page: %d\n", pagenr); in blkmtd_read()
523 page = pagelst[pagenr]; in blkmtd_read()
533 pagenr++; in blkmtd_read()