• Andrew Morton's avatar
    [PATCH] fix suppression of page allocation failure warnings · d51832f3
    Andrew Morton authored
    Somebody somewhere is stomping on PF_NOWARN, and page allocation
    failure warnings are coming out of the wrong places.
    
    So change the handling of current->flags to be:
    
    int pf_flags = current->flags;
    
    current->flags |= PF_NOWARN;
    ...
    current->flags = pf_flags;
    
    which is a generally more robust approach.
    d51832f3
swap_state.c 10.6 KB