diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2014-01-22 00:51:07 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-22 01:19:48 +0100 |
commit | de6c60a6c115acaa721cfd499e028a413d1fcbf3 (patch) | |
tree | 81277ea0bf611f37544dbb0a22e4eff3fc2a9aa8 /drivers/pinctrl/sh-pfc/pfc-sh7269.c | |
parent | mm: compaction: trace compaction begin and end (diff) | |
download | linux-de6c60a6c115acaa721cfd499e028a413d1fcbf3.tar.xz linux-de6c60a6c115acaa721cfd499e028a413d1fcbf3.zip |
mm: compaction: encapsulate defer reset logic
Currently there are several functions to manipulate the deferred
compaction state variables. The remaining case where the variables are
touched directly is when a successful allocation occurs in direct
compaction, or is expected to be successful in the future by kswapd.
Here, the lowest order that is expected to fail is updated, and in the
case of successful allocation, the deferred status and counter is reset
completely.
Create a new function compaction_defer_reset() to encapsulate this
functionality and make it easier to understand the code. No functional
change.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
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>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-sh7269.c')
0 files changed, 0 insertions, 0 deletions