mm/vmstat.c: use helper macro abs()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 16 Oct 2020 03:07:36 +0000 (20:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:17 +0000 (11:11 -0700)
commit406100762ae9ae5b7709c737ada3089160a0f77a
tree3a7129a66491e1aadfedd5a2f0fc19738a091c40
parent11c9c7edae06da789abfdeefe5123162a3f1c7dc
mm/vmstat.c: use helper macro abs()

Use helper macro abs() to simplify the "x > t || x < -t" cmp.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200905084008.15748-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c