summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-07 03:23:36 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-03-07 03:23:36 +0100
commit097d59106a8e4b42d07c9892fdd7790f1659c6ff (patch)
treebabf61a0287b0f09f80580847274877831ed6869 /mm/slab.c
parentMerge git://git.samba.org/sfrench/cifs-2.6 (diff)
downloadlinux-097d59106a8e4b42d07c9892fdd7790f1659c6ff.tar.xz
linux-097d59106a8e4b42d07c9892fdd7790f1659c6ff.zip
vm: avoid using find_vma_prev() unnecessarily
Several users of "find_vma_prev()" were not in fact interested in the previous vma if there was no primary vma to be found either. And in those cases, we're much better off just using the regular "find_vma()", and then "prev" can be looked up by just checking vma->vm_prev. The find_vma_prev() semantics are fairly subtle (see Mikulas' recent commit 83cd904d271b: "mm: fix find_vma_prev"), and the whole "return prev by reference" means that it generates worse code too. Thus this "let's avoid using this inconvenient and clearly too subtle interface when we don't really have to" patch. Cc: Mikulas Patocka <mpatocka@redhat.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions