diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memcontrol.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 82a187aea4c0..905ce72c8c4e 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -5584,7 +5584,13 @@ static int compare_thresholds(const void *a, const void *b) | |||
5584 | const struct mem_cgroup_threshold *_a = a; | 5584 | const struct mem_cgroup_threshold *_a = a; |
5585 | const struct mem_cgroup_threshold *_b = b; | 5585 | const struct mem_cgroup_threshold *_b = b; |
5586 | 5586 | ||
5587 | return _a->threshold - _b->threshold; | 5587 | if (_a->threshold > _b->threshold) |
5588 | return 1; | ||
5589 | |||
5590 | if (_a->threshold < _b->threshold) | ||
5591 | return -1; | ||
5592 | |||
5593 | return 0; | ||
5588 | } | 5594 | } |
5589 | 5595 | ||
5590 | static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg) | 5596 | static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg) |