Andrey Ryabinin
f4b7e272b5
mm: remove zone_lru_lock() function, access ->lru_lock directly
...
We have common pattern to access lru_lock from a page pointer:
zone_lru_lock(page_zone(page))
Which is silly, because it unfolds to this:
&NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)]->zone_pgdat->lru_lock
while we can simply do
&NODE_DATA(page_to_nid(page))->lru_lock
Remove zone_lru_lock() function, since it's only complicate things. Use
'page_pgdat(page)->lru_lock' pattern instead.
[aryabinin@virtuozzo.com: a slightly better version of __split_huge_page()]
Link: http://lkml.kernel.org/r/20190301121651.7741-1-aryabinin@virtuozzo.com
Link: http://lkml.kernel.org/r/20190228083329.31892-2-aryabinin@virtuozzo.com
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: William Kucharski <william.kucharski@oracle.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-05 21:07:21 -08:00
..
2019-02-06 09:36:36 -08:00
2019-01-07 22:47:48 +01:00
2019-01-01 15:45:48 -08:00
2018-12-28 20:54:57 -08:00
2019-03-05 09:09:55 -08:00
2018-12-28 20:00:21 -08:00
2019-01-31 12:51:33 +00:00
2019-03-04 15:32:43 +00:00
2019-03-01 12:04:17 -08:00
2019-02-28 09:16:12 +01:00
2019-02-25 09:28:54 +01:00
2019-03-01 14:28:43 +01:00
2019-01-12 21:07:14 -08:00
2019-03-05 08:26:13 -08:00
2018-12-28 20:22:45 -08:00
2019-02-08 22:39:01 -08:00
2019-03-03 23:45:27 +00:00
2019-03-05 21:07:19 -08:00
2019-01-30 23:02:10 +00:00
2019-01-02 16:35:23 -08:00
2018-12-25 15:01:46 -08:00
2019-03-03 13:01:49 -08:00
2019-01-22 14:39:38 -07:00
2019-03-05 21:07:14 -08:00
2019-01-05 13:18:59 -08:00
2019-01-24 11:11:45 -07:00
2018-12-21 08:47:05 -07:00
2018-12-28 14:48:06 -08:00
2019-02-07 12:57:17 -07:00
2019-01-31 10:13:21 +01:00
2019-02-01 20:55:38 +01:00
2019-01-31 10:32:01 +01:00
2019-02-27 17:22:50 +01:00
2019-01-11 18:05:41 -08:00
2019-02-01 20:55:38 +01:00
2019-01-04 13:13:45 -08:00
2019-03-05 21:07:17 -08:00
2019-03-05 21:07:20 -08:00
2019-02-15 19:52:17 +01:00
2019-01-09 11:36:41 +01:00
2019-01-21 07:23:42 +13:00
2019-01-09 11:36:41 +01:00
2019-01-09 11:36:41 +01:00
2019-01-30 19:27:00 +01:00
2019-01-25 18:41:52 +08:00
2019-01-30 11:02:11 -08:00
2019-03-05 21:07:14 -08:00
2019-01-04 09:02:17 +01:00
2019-01-08 07:58:49 -05:00
2019-01-06 09:46:51 +09:00
2019-02-16 15:02:03 +01:00
2019-02-22 12:55:31 -08:00
2019-02-24 17:33:59 -08:00
2019-01-16 17:42:35 +01:00
2019-02-27 17:22:50 +01:00
2019-03-05 21:07:18 -08:00
2019-03-04 10:32:48 -08:00
2018-12-31 11:46:59 -08:00
2019-01-04 13:13:46 -08:00
2019-03-05 21:07:16 -08:00
2019-01-29 12:09:11 +01:00
2019-01-16 14:29:48 +01:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:50 -08:00
2019-03-05 21:07:19 -08:00
2019-01-09 14:20:47 -05:00
2019-01-31 08:25:09 -07:00
2019-02-22 12:56:24 -08:00
2019-01-24 22:45:34 -08:00
2019-02-03 12:11:12 -08:00
2019-01-22 17:18:09 -08:00
2019-01-18 00:18:45 +01:00
2019-01-22 17:18:08 -08:00
2019-03-03 21:05:10 -08:00
2019-01-06 09:46:51 +09:00
2019-01-06 09:46:51 +09:00
2019-03-05 21:07:13 -08:00
2018-12-28 12:11:44 -08:00
2019-02-19 21:53:07 +01:00
2019-03-05 21:07:17 -08:00
2018-12-26 17:03:51 -08:00
2019-02-15 14:12:09 -08:00
2018-12-30 08:33:06 +00:00
2018-12-26 17:03:51 -08:00
2019-03-05 21:07:15 -08:00
2019-01-16 22:08:07 +01:00
2019-01-21 09:57:43 -08:00
2019-03-05 21:07:16 -08:00
2018-12-21 11:50:02 -05:00
2018-12-21 22:31:26 -06:00
2018-12-21 22:31:26 -06:00
2019-02-24 17:45:25 -08:00
2019-02-05 11:51:56 -07:00
2019-02-18 16:43:54 -08:00
2019-02-16 15:02:03 +01:00
2019-03-05 21:07:17 -08:00
2019-03-05 21:07:14 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:51 -08:00
2019-01-04 13:13:48 -08:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:19 -08:00
2018-12-28 12:11:50 -08:00
2019-03-05 21:07:21 -08:00
2018-12-25 12:26:34 -08:00
2019-02-15 19:52:56 +01:00
2019-02-16 13:45:01 -08:00
2019-03-02 12:54:35 -08:00
2019-01-06 09:46:51 +09:00
2019-01-28 11:32:58 +01:00
2019-02-04 18:21:12 +01:00
2019-01-06 09:46:51 +09:00
2019-01-19 10:09:58 -08:00
2019-03-05 21:07:20 -08:00
2019-02-08 15:02:49 -08:00
2019-01-10 16:24:44 -06:00
2018-12-28 12:11:48 -08:00
2018-12-28 12:11:44 -08:00
2019-03-05 21:07:19 -08:00
2018-12-28 12:11:46 -08:00
2018-12-28 12:11:51 -08:00
2019-03-05 21:07:20 -08:00
2019-01-05 17:57:34 -08:00
2019-01-08 07:58:37 -05:00
2019-01-05 17:57:34 -08:00
2019-02-11 11:46:43 +01:00
2019-02-07 18:11:58 -08:00
2019-03-03 21:47:57 -08:00
2019-02-24 12:39:45 -08:00
2019-01-04 12:19:40 +01:00
2019-01-30 22:49:06 +01:00
2019-03-05 21:07:20 -08:00
2019-01-04 13:13:46 -08:00
2019-02-17 15:53:01 -08:00
2019-01-10 17:04:45 -06:00
2019-01-23 15:52:15 +00:00
2019-01-03 18:57:57 -08:00
2019-01-07 16:38:26 +01:00
2019-02-22 13:49:00 +01:00
2019-03-05 21:07:19 -08:00
2018-12-21 11:50:02 -05:00
2019-03-05 21:07:18 -08:00
2019-01-12 11:48:20 -06:00
2019-02-22 12:55:31 -08:00
2018-12-28 12:11:44 -08:00
2018-12-29 11:21:49 -08:00
2019-03-05 21:07:14 -08:00
2019-02-03 11:17:31 -08:00
2019-01-30 22:24:49 -08:00
2018-12-22 22:50:29 -05:00
2019-03-05 21:07:21 -08:00
2019-01-18 09:33:18 +01:00
2019-01-04 12:56:09 -08:00
2019-01-11 18:05:40 -08:00
2019-01-14 20:15:17 -05:00
2019-02-24 12:06:19 -08:00
2018-12-28 12:11:51 -08:00
2018-12-22 12:15:29 +01:00
2019-01-17 07:19:42 -05:00
2018-12-28 12:11:46 -08:00