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
Linus Torvalds
52ddb7e9dd
Merge tag 'doc-4.8-fixes' of git://git.lwn.net/linux
...
Pull documentation fixes from Jonathan Corbet:
"Three fixes for the docs build, including removing an annoying warning
on 'make help' if sphinx isn't present"
* tag 'doc-4.8-fixes' of git://git.lwn.net/linux:
DocBook: use DOCBOOKS="" to ignore DocBooks instead of IGNORE_DOCBOOKS=1
Documenation: update cgroup's document path
Documentation/sphinx: do not warn about missing tools in 'make help'
2016-08-07 10:23:17 -04:00
seokhoon.yoon
09c3bcce7c
Documenation: update cgroup's document path
...
cgroup's document path is changed to "cgroup-v1". update it.
Signed-off-by: seokhoon.yoon <iamyooon@gmail.com >
Signed-off-by: Jonathan Corbet <corbet@lwn.net >
2016-08-03 15:43:58 -06:00
Mel Gorman
a52633d8e9
mm, vmscan: move lru_lock to the node
...
Node-based reclaim requires node-based LRUs and locking. This is a
preparation patch that just moves the lru_lock to the node so later
patches are easier to review. It is a mechanical change but note this
patch makes contention worse because the LRU lock is hotter and direct
reclaim and kswapd can contend on the same lock even when reclaiming
from different zones.
Link: http://lkml.kernel.org/r/1467970510-21195-3-git-send-email-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net >
Reviewed-by: Minchan Kim <minchan@kernel.org >
Acked-by: Johannes Weiner <hannes@cmpxchg.org >
Acked-by: Vlastimil Babka <vbabka@suse.cz >
Cc: Hillf Danton <hillf.zj@alibaba-inc.com >
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com >
Cc: Michal Hocko <mhocko@kernel.org >
Cc: Rik van Riel <riel@surriel.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-07-28 16:07:41 -07:00
Tejun Heo
6255c46fa0
cgroup: rename cgroup documentations
...
cgroup-legacy may be too loaded. Rename the docs so that they're
postfixed with v1 and v2.
* s/cgroup-legacy/cgroup-v1/
* s/cgroup.txt/cgroup-v2.txt/
Signed-off-by: Tejun Heo <tj@kernel.org >
2016-01-11 23:14:51 -05:00