From: Dean Nelson Date: Tue, 16 Oct 2007 08:24:45 +0000 (-0700) Subject: calculation of pgoff in do_linear_fault() uses mixed units X-Git-Tag: v2.6.24-rc1~1219 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da7e01f5f37f441cccd7c8c0586e06db0981907;p=pandora-kernel.git calculation of pgoff in do_linear_fault() uses mixed units The calculation of pgoff in do_linear_fault() should use PAGE_SHIFT and not PAGE_CACHE_SHIFT since vma->vm_pgoff is in units of PAGE_SIZE and not PAGE_CACHE_SIZE. At the moment linux/pagemap.h has PAGE_CACHE_SHIFT defined as PAGE_SHIFT, but should that ever change this calculation would break. Signed-off-by: Dean Nelson Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed