Edgar Arriaga 4b0678dbf5
UPSTREAM: mm: factor out common parts between MADV_COLD and MADV_PAGEOUT
There are many common parts between MADV_COLD and MADV_PAGEOUT.
This patch factor them out to save code duplication.

Link: http://lkml.kernel.org/r/20190726023435.214162-6-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Suggested-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Daniel Colascione <dancol@google.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: kbuild test robot <lkp@intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Oleksandr Natalenko <oleksandr@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Sonny Rao <sonnyrao@google.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Tim Murray <timmurray@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit d616d5126503967bf365db0711ee3c78b356efe9)

Bug: 153444106
Test: Built kernel

Signed-off-by: Edgar Arriaga García <edgararriaga@google.com>
Change-Id: I125cdc8410d66d38907a9c74668306a32e7df55e
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-07-31 09:36:44 +00:00
..
2021-04-28 13:44:48 +02:00
2022-07-31 09:36:44 +00:00
2022-07-31 09:36:44 +00:00
2022-04-06 13:18:17 +07:00
2022-04-06 13:18:17 +07:00
2021-11-26 15:15:32 +01:00
2022-07-26 08:09:42 +00:00
2022-07-31 09:27:36 +00:00
2022-07-31 09:24:50 +00:00
2022-07-31 09:36:44 +00:00