]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/core: remove duplicate list_empty quota->goals check
authorHonggyu Kim <honggyu.kim@sk.com>
Tue, 14 Jan 2025 06:40:34 +0000 (22:40 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:34 +0000 (22:40 -0800)
commit66539952627c891d8d73cdd619d1937b6b3f66c7
tree03c08046f9e48432421c47f433b7dc49c4dd278f
parent9aec2fb0fd5ed3b90665a9a289fff7fa7a6e1fc7
mm/damon/core: remove duplicate list_empty quota->goals check

damos_set_effective_quota() checks quota contidions but there are some
duplicate checks for quota->goals inside.

This patch reduces one of if statement to simplify the esz calculation
logic by setting esz as ULONG_MAX by default.

Link: https://lkml.kernel.org/r/20241125184307.41746-1-sj@kernel.org
Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c