diff options
author | Xin Hao <xhao@linux.alibaba.com> | 2022-01-14 23:09:40 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-01-15 15:30:32 +0100 |
commit | d720bbbd70e968f8a0257393b575c3a29b56f990 (patch) | |
tree | 5ea2427222abde3ba6b11243d4038ab138d7609e /mm/damon/vaddr.c | |
parent | mm/damon: add 'age' of region tracepoint support (diff) | |
download | linux-d720bbbd70e968f8a0257393b575c3a29b56f990.tar.xz linux-d720bbbd70e968f8a0257393b575c3a29b56f990.zip |
mm/damon/core: use abs() instead of diff_of()
In kernel, we can use abs(a - b) to get the absolute value, So there is no
need to redefine a new one.
Link: https://lkml.kernel.org/r/b24e7b82d9efa90daf150d62dea171e19390ad0b.1636989871.git.xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions