thp: add compound_trans_head() helper
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:47:20 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:48 +0000 (17:32 -0800)
commit22e5c47ee238abe636655c3862ed28d6eb084ad4
tree4a4e7d330cbef6c99a8914de482eb0e8daba2485
parent29ad768cfc08611a4c1070d0f13f82eeea2bac7b
thp: add compound_trans_head() helper

Cleanup some code with common compound_trans_head helper.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/huge_mm.h
mm/ksm.c
virt/kvm/kvm_main.c