Re: [PATCH 3/3] mm: catch memory commitment underflow

Dave Hansen
2014-06-25T22:23:55Z

On 06/24/2014 01:16 PM, Konstantin Khlebnikov wrote:
> reserve;
>
> +#ifdef CONFIG_DEBUG_VM
> + WARN_ONCE(percpu_counter_read(&vm_committed_as) <
> + -(s64)vm_committed_as_batch * num_online_cpus(),
> + "memory commitment underflow");
> +#endif

Why not use VM_WARN_ON_ONCE()?