summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorDean Nelson2007-10-16 10:24:45 +0200
committerLinus Torvalds2007-10-16 18:42:53 +0200
commit0da7e01f5f37f441cccd7c8c0586e06db0981907 (patch)
tree3d43edc4166667948415de84254bd60cfb457734 /mm/slub.c
parent{slub, slob}: use unlikely() for kfree(ZERO_OR_NULL_PTR) check (diff)
downloadkernel-qcow2-linux-0da7e01f5f37f441cccd7c8c0586e06db0981907.tar.gz
kernel-qcow2-linux-0da7e01f5f37f441cccd7c8c0586e06db0981907.tar.xz
kernel-qcow2-linux-0da7e01f5f37f441cccd7c8c0586e06db0981907.zip
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 <dcn@sgi.com> Acked-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions