]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mm/page_alloc.c: use a single function to free page
authorAaron Lu <aaron.lu@intel.com>
Fri, 28 Dec 2018 08:35:22 +0000 (00:35 -0800)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:55 +0000 (14:21 -0300)
commit15be2e6025a7d7c55634f351154da871a7ea5ef2
treeae8587030945e36a04a29689a79ee30ccd4cc36a
parentfdb03ae8cec79fc9a6ab2fe9ecfdb5a1cc162f9d
mm/page_alloc.c: use a single function to free page

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit 742aa7fb52c56fb3b307e704f93e67b698959cc2 ]

There are multiple places of freeing a page, they all do the same things
so a common function can be used to reduce code duplicate.

It also avoids bug fixed in one function but left in another.

Link: http://lkml.kernel.org/r/20181119134834.17765-3-aaron.lu@intel.com
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Pankaj gupta <pagupta@redhat.com>
Cc: Pawel Staszewski <pstaszewski@itcare.pl>
Cc: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
mm/page_alloc.c