]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/vaddr: remove swap_ranges() and replace it with swap()
authorYihao Han <hanyihao@vivo.com>
Fri, 14 Jan 2022 22:09:47 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:32 +0000 (16:30 +0200)
commit3338be61981daf7e60c6cfc954bc9b6a740974c6
treebce45577dd7460ef4df248b064d774f259dd26e0
parent8c119f6037af3ba67acd63ff9ab2b4d35a912bae
mm/damon/vaddr: remove swap_ranges() and replace it with swap()

Remove 'swap_ranges()' and replace it with the macro 'swap()' defined in
'include/linux/minmax.h' to simplify code and improve efficiency

Link: https://lkml.kernel.org/r/20211111115355.2808-1-hanyihao@vivo.com
Signed-off-by: Yihao Han <hanyihao@vivo.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/vaddr.c