Repository navigation
Commit a6ffdc0
mm: use is_migrate_highatomic() to simplify the code
Introduce two helpers, is_migrate_highatomic() and is_migrate_highatomic_page().
Simplify the code, no functional changes.
[akpm@linux-foundation.org: use static inlines rather than macros, per mhocko]
Link: http://lkml.kernel.org/r/58B94F15.6060606@huawei.com
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 322b8af commit a6ffdc0
3 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
513 | 523 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2036 | 2036 | | |
2037 | 2037 | | |
2038 | 2038 | | |
2039 | | - | |
2040 | | - | |
| 2039 | + | |
| 2040 | + | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | | - | |
2098 | | - | |
| 2097 | + | |
2099 | 2098 | | |
2100 | 2099 | | |
2101 | 2100 | | |
| |||
2152 | 2151 | | |
2153 | 2152 | | |
2154 | 2153 | | |
2155 | | - | |
2156 | | - | |
| 2154 | + | |
2157 | 2155 | | |
2158 | 2156 | | |
2159 | 2157 | | |
| |||
2493 | 2491 | | |
2494 | 2492 | | |
2495 | 2493 | | |
2496 | | - | |
| 2494 | + | |
2497 | 2495 | | |
2498 | 2496 | | |
2499 | 2497 | | |
| |||
2603 | 2601 | | |
2604 | 2602 | | |
2605 | 2603 | | |
2606 | | - | |
| 2604 | + | |
2607 | 2605 | | |
2608 | 2606 | | |
2609 | 2607 | | |
| |||
0 commit comments