diff options
| author | Kaitao Cheng <[email protected]> | 2020-01-30 22:13:42 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-01-31 10:30:38 -0800 |
| commit | 92855270ff0827865109447b59e7e5df9c2bef68 (patch) | |
| tree | f1e71292138614bee4992993a33c30d0dc9f90b5 /tools/perf/scripts/python | |
| parent | 10c8d69f314d557d94d74ec492575ae6a4f1eb1c (diff) | |
mm/memcontrol.c: cleanup some useless code
Compound pages handling in mem_cgroup_migrate is more convoluted than
necessary. The state is duplicated in compound variable and the same
could be achieved by PageTransHuge check which is trivial and
hpage_nr_pages is already PageTransHuge aware.
It is much simpler to just use hpage_nr_pages for nr_pages and replace
the local variable by PageTransHuge check directly
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kaitao Cheng <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions