X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=mm%2Fthrash.c;h=c4c5205a9c35f82c2dc34b52b4b37a8b0a0ecc44;hb=f48419666e645208c0156aecab1ee6157303da3c;hp=9ef9071f99bcd7322b8e1f6808a477403b891211;hpb=6bfe5c9d6f4dcaa998f67e691359cf7b1c4b443d;p=powerpc.git diff --git a/mm/thrash.c b/mm/thrash.c index 9ef9071f99..c4c5205a9c 100644 --- a/mm/thrash.c +++ b/mm/thrash.c @@ -48,9 +48,8 @@ void grab_swap_token(void) if (current_interval < current->mm->last_interval) current->mm->token_priority++; else { - current->mm->token_priority--; - if (unlikely(current->mm->token_priority < 0)) - current->mm->token_priority = 0; + if (likely(current->mm->token_priority > 0)) + current->mm->token_priority--; } /* Check if we deserve the token */ if (current->mm->token_priority >