]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitff45fc3ca0f3c38e752d75f71b8d8efcf409e42d
tree0292da2a5339e202658028ead79cf4f2bb791749
parent5be993432821750f382809df5e20bf4c129b24f7
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