Patch "mm/vmscan: use folio_migratetype() instead of get_pageblock_migratetype()" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mm/vmscan: use folio_migratetype() instead of get_pageblock_migratetype()

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mm-vmscan-use-folio_migratetype-instead-of-get_pageb.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c6ad1923534325034b2447609a99f9c07b10294f
Author: Vern Hao <vernhao@xxxxxxxxxxx>
Date:   Fri Aug 25 15:57:34 2023 +0800

    mm/vmscan: use folio_migratetype() instead of get_pageblock_migratetype()
    
    [ Upstream commit 97144ce008f918249fa7275ee1d29f6f27665c34 ]
    
    In skip_cma(), we can use folio_migratetype() to replace
    get_pageblock_migratetype().
    
    Link: https://lkml.kernel.org/r/20230825075735.52436-1-user@VERNHAO-MC1
    Signed-off-by: Vern Hao <vernhao@xxxxxxxxxxx>
    Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>
    Cc: Zhaoyang Huang <zhaoyang.huang@xxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: bfe0857c20c6 ("Revert "mm: skip CMA pages when they are not available"")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 83fa8e924f8a..7175ff9b97d9 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2271,7 +2271,7 @@ static bool skip_cma(struct folio *folio, struct scan_control *sc)
 {
 	return !current_is_kswapd() &&
 			gfp_migratetype(sc->gfp_mask) != MIGRATE_MOVABLE &&
-			get_pageblock_migratetype(&folio->page) == MIGRATE_CMA;
+			folio_migratetype(folio) == MIGRATE_CMA;
 }
 #else
 static bool skip_cma(struct folio *folio, struct scan_control *sc)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux