Minchan Kim
eb94a87844
mm: fix lazyfree BUG_ON check in try_to_unmap_one()
...
If a page is swapbacked, it means it should be in swapcache in
try_to_unmap_one's path.
If a page is !swapbacked, it mean it shouldn't be in swapcache in
try_to_unmap_one's path.
Check both two cases all at once and if it fails, warn and return
SWAP_FAIL. Such bug never mean we should shut down the kernel.
[minchan@kernel.org: do not use VM_WARN_ON_ONCE as if condition[
Link: http://lkml.kernel.org/r/20170309060226.GB854@bbox
Link: http://lkml.kernel.org/r/20170307055551.GC29458@bbox
Signed-off-by: Minchan Kim <minchan@kernel.org>
Suggested-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Shaohua Li <shli@fb.com>
Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-05-03 15:52:08 -07:00
..
2017-03-31 17:13:30 -07:00
2017-04-20 12:09:55 -06: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-05-02 11:18:50 -07:00
2016-10-19 08:11:24 -07:00
2016-07-26 16:19:19 -07:00
2017-04-23 11:45:20 +02:00
2016-05-19 19:12:14 -07:00
2017-05-03 15:52:08 -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-05-03 15:52:08 -07:00
2015-02-10 14:30:31 -08:00
2017-05-01 09:36:31 +02:00
2017-02-27 18:43:48 -08:00
2017-05-03 15:52:08 -07: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-05-03 15:52:08 -07: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-05-03 15:52:08 -07:00
2017-04-02 10:33:48 -04:00
2017-04-08 10:57:55 -07:00
2016-07-28 16:07:41 -07:00
2015-09-08 15:35:28 -07:00
2017-05-03 15:52:08 -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-05-03 15:52:08 -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-05-03 15:52:08 -07: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-04-04 11:31:12 +02: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-05-03 15:52:08 -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-05-03 15:52:07 -07: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
2017-04-08 00:47:49 -07:00
2017-03-21 14:13:19 -07:00
2017-02-22 16:41:30 -08:00
2017-05-03 15:52:08 -07:00
2017-03-09 11:48:47 -08:00
2017-02-27 18:43:46 -08:00
2017-04-05 12:30:18 -07: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-05-02 10:21:17 -07:00
2017-02-24 17:46:56 -08:00
2017-05-03 15:52:08 -07:00
2017-05-03 15:52:08 -07:00
2017-03-31 17:13:30 -07:00
2017-04-13 18:24:20 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2017-04-13 18:24:21 -07:00
2017-02-27 18:43:45 -08:00