diff options
author | 2025-01-13 22:40:34 -0800 | |
---|---|---|
committer | 2025-01-13 22:40:34 -0800 | |
commit | 66539952627c891d8d73cdd619d1937b6b3f66c7 (patch) | |
tree | 03c08046f9e48432421c47f433b7dc49c4dd278f /kernel/irq_work.c | |
parent | slab: allocate frozen pages (diff) | |
download | linux-rng-66539952627c891d8d73cdd619d1937b6b3f66c7.tar.xz linux-rng-66539952627c891d8d73cdd619d1937b6b3f66c7.zip |
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>
Diffstat (limited to 'kernel/irq_work.c')
0 files changed, 0 insertions, 0 deletions