David Rientjes
4fad7fb6b0
mm, thp: fix setting of defer+madvise thp defrag mode
...
Setting thp defrag mode of "defer+madvise" actually sets "defer" in the
kernel due to the name similarity and the out-of-order way the string is
checked in defrag_store().
Check the string in the correct order so that
TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG is set appropriately for
"defer+madvise".
Fixes: 21440d7eb904 ("mm, thp: add new defer+madvise defrag option")
Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1704051814420.137626@chino.kir.corp.google.com
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-04-08 00:47:48 -07:00
..
2017-03-31 17:13:30 -07:00
2017-03-08 10:55:17 -07:00
2016-07-26 16:19:19 -07:00
2017-02-22 16:41:29 -08:00
2016-01-27 09:09:57 -05:00
2017-02-24 17:46:55 -08:00
2017-02-24 17:46:55 -08:00
2015-08-14 15:56:32 -07:00
2017-03-02 08:42:32 +01:00
2016-03-17 15:09:34 -07:00
2016-12-12 18:55:08 -08:00
2017-02-27 18:43:47 -08:00
2015-11-05 19:34:48 -08:00
2016-12-20 09:48:46 -08:00
2016-03-15 16:55:16 -07:00
2017-03-02 08:42:29 +01:00
2016-10-19 08:11:24 -07:00
2016-07-26 16:19:19 -07:00
2017-03-13 08:58:09 -07:00
2016-05-19 19:12:14 -07:00
2017-04-08 00:47:48 -07:00
2016-05-20 17:58:30 -07:00
2017-03-31 17:13:30 -07:00
2015-09-10 13:29:01 -07:00
2016-11-22 11:49:48 -06:00
2017-02-24 17:46:55 -08:00
2015-02-10 14:30:31 -08:00
2016-12-12 18:55:08 -08:00
2017-02-27 18:43:48 -08:00
2017-03-02 08:42:28 +01:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2017-03-31 17:13:30 -07:00
2017-03-02 08:42:28 +01:00
2016-10-27 18:43:42 -07:00
2016-05-22 17:21:27 -07:00
2017-03-09 17:01:10 -08:00
2017-02-27 18:43:48 -08:00
2017-03-09 17:01:10 -08:00
2017-03-09 17:01:10 -08:00
2017-03-16 16:56:18 -07:00
2017-03-02 08:42:35 +01:00
2017-03-09 11:48:48 -08:00
2017-03-02 08:42:38 +01:00
2016-07-28 16:07:41 -07:00
2015-09-08 15:35:28 -07:00
2017-03-31 17:13:30 -07:00
2017-02-24 17:46:56 -08:00
2017-03-10 08:59:07 -08:00
2016-03-17 15:09:34 -07:00
2017-03-02 15:20:00 -08:00
2017-03-02 08:42:38 +01:00
2017-03-02 08:42:28 +01:00
2017-02-22 16:41:29 -08:00
2017-03-09 11:48:47 -08:00
2017-03-09 11:48:47 -08:00
2015-11-05 19:34:48 -08:00
2016-10-11 15:06:33 -07:00
2017-03-03 10:16:38 -08:00
2017-03-02 08:42:35 +01:00
2017-04-08 00:47:48 -07:00
2015-11-05 19:34:48 -08:00
2016-10-07 18:46:27 -07:00
2017-02-24 17:46:55 -08:00
2016-11-02 10:24:03 -06:00
2017-02-22 16:41:27 -08:00
2016-10-07 18:46:27 -07:00
2016-06-03 15:06:22 -07:00
2017-04-08 00:47:48 -07:00
2017-03-02 08:42:37 +01:00
2017-03-09 11:48:47 -08:00
2016-03-17 15:09:34 -07:00
2017-03-06 15:56:55 -05:00
2017-03-06 15:55:39 -05:00
2017-03-09 11:48:47 -08:00
2017-03-02 08:42:28 +01:00
2016-03-17 15:09:34 -07:00
2016-12-12 18:55:08 -08:00
2017-03-31 17:13:30 -07:00
2017-02-27 18:43:48 -08:00
2017-03-03 11:38:56 -08:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:39 +01:00
2017-02-22 16:41:27 -08:00
2017-02-22 16:41:27 -08:00
2017-02-22 16:41:27 -08:00
2017-03-09 11:48:47 -08:00
2017-02-22 16:41:29 -08:00
2016-03-17 15:09:34 -07:00
2017-03-21 14:13:19 -07:00
2017-02-22 16:41:30 -08:00
2017-02-24 17:46:54 -08:00
2017-03-09 11:48:47 -08:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:35 +01:00
2017-03-09 11:48:47 -08:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:38 +01:00
2017-03-16 16:56:18 -07:00
2017-02-24 17:46:56 -08:00
2017-03-02 08:42:33 +01:00
2017-03-31 17:13:30 -07:00
2017-03-31 17:13:30 -07:00
2017-03-16 16:56:18 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2017-03-02 08:42:40 +01:00
2017-02-27 18:43:45 -08:00