lkml.org 
[lkml]   [2023]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/6] mm: compaction: drop the redundant page validation in update_pageblock_skip()
    Date
    The caller has validated the page before calling pdate_pageblock_skip(),
    thus drop the redundant page validation in update_pageblock_skip().

    Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
    ---
    mm/compaction.c | 3 ---
    1 file changed, 3 deletions(-)

    diff --git a/mm/compaction.c b/mm/compaction.c
    index 163e2ec70aff..426bb6ce070b 100644
    --- a/mm/compaction.c
    +++ b/mm/compaction.c
    @@ -436,9 +436,6 @@ static void update_pageblock_skip(struct compact_control *cc,
    if (cc->no_set_skip_hint)
    return;

    - if (!page)
    - return;
    -
    set_pageblock_skip(page);

    /* Update where async and sync compaction should restart */
    --
    2.27.0
    \
     
     \ /
      Last update: 2023-05-25 14:55    [W:2.915 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site