summaryrefslogtreecommitdiff
path: root/include/linux/arm-cci.h
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2014-08-28 19:34:28 +0100
committerJiri Slaby <jslaby@suse.cz>2014-09-26 11:51:53 +0200
commit6e3335e29177af49e8e4b8ba67452aa7afd91d7e (patch)
tree8d4cac0017c8c1d131228e411b246a0fa294051e /include/linux/arm-cci.h
parent280f6d65ae22f07d7a8e36b006e2bb39c2d287bb (diff)
mm: compaction: encapsulate defer reset logic
commit de6c60a6c115acaa721cfd499e028a413d1fcbf3 upstream. 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> Signed-off-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/linux/arm-cci.h')
0 files changed, 0 insertions, 0 deletions