William Lee Irwin III wrote: > On Thu, Jun 23, 2005 at 05:06:35PM +1000, Nick Piggin wrote: > >>+ index = (address - vma->vm_start) >> PAGE_SHIFT; >>+ index += vma->vm_pgoff; >>+ index >>= PAGE_CACHE_SHIFT - PAGE_SHIFT; >>+ page->index = index; > > > linear_page_index() > Ah indeed it is, thanks. I'll queue this up as patch 2.5, then?