aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorShaohua Li <[email protected]>2011-06-15 15:08:49 -0700
committerLinus Torvalds <[email protected]>2011-06-15 20:04:02 -0700
commita582a738c763e106f47eab24b8146c698a9c700b (patch)
treeaaa5eda6bae7adc04dc5cbd513f5c25ac684af97 /net/lapb/lapb_subr.c
parent5db8a73a8d7cc6a66afbf25ed7fda338caa8f5f9 (diff)
compaction: checks correct fragmentation index
fragmentation_index() returns -1000 when the allocation might succeed This doesn't match the comment and code in compaction_suitable(). I thought compaction_suitable should return COMPACT_PARTIAL in -1000 case, because in this case allocation could succeed depending on watermarks. The impact of this is that compaction starts and compact_finished() is called which rechecks the watermarks and the free lists. It should have the same result in that compaction should not start but is more expensive. Acked-by: Mel Gorman <[email protected]> Signed-off-by: Shaohua Li <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions