mm/damon/sysfs: change few functions execute order
authorXin Hao <xhao@linux.alibaba.com>
Thu, 8 Sep 2022 08:19:32 +0000 (16:19 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:08 +0000 (14:03 -0700)
commita17a8b3b3e6b08a9cd3b2134789843323d998bed
treec04b28bfcf6b283eba21465da66171d97aa381b4
parentf4981502088f8ea704beeedf3470e1d53bc2e46c
mm/damon/sysfs: change few functions execute order

There's no need to run container_of() as early as we do.

The compiler figures this out, but the resulting code is more readable.

Link: https://lkml.kernel.org/r/20220908081932.77370-1-xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c