diff options
author | Qais Yousef <qyousef@layalina.io> | 2024-06-10 21:20:18 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-08-07 18:32:38 +0200 |
commit | ae04f69de0bef93c7086cf2983dbc8e8fd624ebe (patch) | |
tree | 22e900c1069394189c8e78b70a32ef68c3293e5a /mm/page-writeback.c | |
parent | sched/rt, dl: Convert functions to return bool (diff) | |
download | linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.tar.xz linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.zip |
sched/rt: Rename realtime_{prio, task}() to rt_or_dl_{prio, task}()
Some find the name realtime overloaded. Use rt_or_dl() as an
alternative, hopefully better, name.
Suggested-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240610192018.1567075-4-qyousef@layalina.io
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r-- | mm/page-writeback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 78dcad729703..7a04cb1918fd 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -418,7 +418,7 @@ static void domain_dirty_limits(struct dirty_throttle_control *dtc) bg_thresh = (bg_ratio * available_memory) / PAGE_SIZE; tsk = current; - if (realtime_task(tsk)) { + if (rt_or_dl_task(tsk)) { bg_thresh += bg_thresh / 4 + global_wb_domain.dirty_limit / 32; thresh += thresh / 4 + global_wb_domain.dirty_limit / 32; } @@ -477,7 +477,7 @@ static unsigned long node_dirty_limit(struct pglist_data *pgdat) else dirty = vm_dirty_ratio * node_memory / 100; - if (realtime_task(tsk)) + if (rt_or_dl_task(tsk)) dirty += dirty / 4; /* |