Files
android_kernel_xiaomi_sm8450/include/linux
Xin Hao 70ff0aeea7 UPSTREAM: mm/damon: modify damon_rand() macro to static inline function
damon_rand() cannot be implemented as a macro.

Example:
	damon_rand(a++, b);

The value of 'a' will be incremented twice, This is obviously
unreasonable, So there fix it.

Link: https://lkml.kernel.org/r/110ffcd4e420c86c42b41ce2bc9f0fe6a4f32cd3.1638795127.git.xhao@linux.alibaba.com
Fixes: b9a6ac4e4ede ("mm/damon: adaptively adjust regions")
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
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>

(cherry picked from commit 234d68732b6c135087bdebfa0630a43ae8c27758)

Bug: 228223814
Signed-off-by: Hailong Tu <tuhailong@oppo.com>
Change-Id: Idcc316e6f582959254111fb160d04875d235c306
2022-04-28 23:09:18 +08:00
..
2022-02-07 11:17:58 +01:00
2021-12-08 09:41:05 +01:00
2021-11-21 14:29:02 +01:00
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
2020-09-16 08:54:53 -05:00
2021-08-27 17:14:51 +02:00
2020-11-19 22:38:29 -05:00
2021-03-04 11:37:59 +01:00
2020-09-04 09:25:20 -07:00
2021-02-07 15:37:17 +01:00
2021-11-18 14:03:37 +01:00
2021-09-15 09:50:41 +02:00
2020-09-04 12:46:07 +01:00
2021-06-30 08:47:26 -04:00
2022-01-27 11:49:22 +01:00
2020-10-07 14:28:39 -04:00
2021-11-21 14:29:02 +01:00
2020-10-18 09:27:10 -07:00
2021-06-30 19:38:46 +02:00
2021-11-19 11:50:41 +01:00
2021-10-17 11:42:28 +02:00
2021-08-04 12:46:44 +02:00
2020-09-26 22:55:05 -04:00
2021-07-25 15:37:14 +02:00
2021-05-14 09:50:31 +02:00
2020-09-10 14:03:31 -07:00
2021-03-11 16:02:50 +00:00
2020-10-05 13:21:49 +02:00
2021-12-14 13:54:22 +01:00