]> git.baikalelectronics.ru Git - kernel.git/commit
mm: simplify calling a compound page destructor
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 3 Jun 2020 23:01:09 +0000 (16:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2020 03:09:47 +0000 (20:09 -0700)
commit89ca71472ef2d744e9c92edf986ff6947286ed11
tree0292da2a5339e202658028ead79cf4f2bb791749
parentd2041fbb6d9b82df4fe46e59700616657a8d0ff2
mm: simplify calling a compound page destructor

None of the three callers of get_compound_page_dtor() want to know the
value; they just want to call the function.  Replace it with
destroy_compound_page() which calls the dtor for them.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: http://lkml.kernel.org/r/20200517105051.9352-1-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/swap.c
mm/vmscan.c