diff options
author | Vlastimil Babka <[email protected]> | 2020-08-06 23:25:16 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-08-07 11:33:28 -0700 |
commit | deba04872be44e1c005364c276495a3b425dfbe6 (patch) | |
tree | 08f27c0b46aa19114faeb4c64b5eabcc8e2ba54e /scripts/gdb/linux/lists.py | |
parent | 51dcc81c282dc401dfd8460a7e59546bc1b30e32 (diff) |
mm, page_alloc: use unlikely() in task_capc()
Hugh noted that task_capc() could use unlikely(), as most of the time
there is no capture in progress and we are in page freeing hot path.
Indeed adding unlikely() produces assembly that better matches the
assumption and moves all the tests away from the hot path.
I have also noticed that we don't need to test for cc->direct_compaction
as the only place we set current->task_capture is compact_zone_order()
which also always sets cc->direct_compaction true.
Suggested-by: Hugh Dickins <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Hugh Dickins <hughd@googlecom>
Acked-by: Mel Gorman <[email protected]>
Cc: Alex Shi <[email protected]>
Cc: Li Wang <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions