lkml.org 
[lkml]   [2022]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 9/9] mm/vmscan: use helper folio_is_file_lru()
    Date
    Use helper folio_is_file_lru() to check whether folio is file lru. Minor
    readability improvement.

    Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
    ---
    mm/vmscan.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/mm/vmscan.c b/mm/vmscan.c
    index 79310b3cbbe3..208ce417f1a4 100644
    --- a/mm/vmscan.c
    +++ b/mm/vmscan.c
    @@ -1421,7 +1421,7 @@ static enum page_references folio_check_references(struct folio *folio,
    }

    /* Reclaim if clean, defer dirty folios to writeback */
    - if (referenced_folio && !folio_test_swapbacked(folio))
    + if (referenced_folio && folio_is_file_lru(folio))
    return PAGEREF_RECLAIM_CLEAN;

    return PAGEREF_RECLAIM;
    --
    2.23.0
    \
     
     \ /
      Last update: 2022-09-17 16:21    [W:3.525 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site