1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-20 13:24:11 +00:00
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-01-01 15:45:48 -08:00
2019-02-28 09:16:12 +01:00
2019-02-25 09:28:54 +01:00
2019-02-08 22:39:01 -08:00
2019-01-02 16:35:23 -08:00
2019-01-24 11:11:45 -07:00
2018-12-28 14:48:06 -08:00
2019-02-01 20:55:38 +01:00
2019-02-27 17:22:50 +01:00
2019-02-01 20:55:38 +01:00
2019-02-27 17:22:50 +01:00
2018-12-31 11:46:59 -08:00
2019-03-05 21:07:16 -08:00
2019-03-05 21:07:17 -08:00
2019-01-04 13:13:48 -08:00
2019-02-08 15:02:49 -08:00
2019-03-05 21:07:19 -08:00
2019-01-05 17:57:34 -08:00
2019-01-05 17:57:34 -08:00
2019-03-03 21:47:57 -08:00
2019-01-07 16:38:26 +01:00
2018-12-21 11:50:02 -05:00
2019-02-03 11:17:31 -08:00
2019-01-11 18:05:40 -08:00
2018-12-22 12:15:29 +01:00