+ page_alloc-consider-highatomic-reserve-in-watermark-fast-v5.patch added to -mm tree

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

 



The patch titled
     Subject: page_alloc-consider-highatomic-reserve-in-watermark-fast-v5
has been added to the -mm tree.  Its filename is
     page_alloc-consider-highatomic-reserve-in-watermark-fast-v5.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/page_alloc-consider-highatomic-reserve-in-watermark-fast-v5.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/page_alloc-consider-highatomic-reserve-in-watermark-fast-v5.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jaewon Kim <jaewon31.kim@xxxxxxxxxxx>
Subject: page_alloc-consider-highatomic-reserve-in-watermark-fast-v5

remove redundant code for high-order

Link: http://lkml.kernel.org/r/20200623035242.27232-1-jaewon31.kim@xxxxxxxxxxx
Reported-by: Yong-Taek Lee <ytk.lee@xxxxxxxxxxx>
Suggested-by: Minchan Kim <minchan@xxxxxxxxxx>
Signed-off-by: Jaewon Kim <jaewon31.kim@xxxxxxxxxxx>
Acked-by: Vlastimil Babka <vbabka@xxxxxxx>
Reviewed-by: Baoquan He <bhe@xxxxxxxxxx>
Acked-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/page_alloc.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/mm/page_alloc.c~page_alloc-consider-highatomic-reserve-in-watermark-fast-v5
+++ a/mm/page_alloc.c
@@ -3592,18 +3592,18 @@ static inline bool zone_watermark_fast(s
 				unsigned int alloc_flags)
 {
 	long free_pages;
-	long unusable_free;
 
 	free_pages = zone_page_state(z, NR_FREE_PAGES);
-	unusable_free = __zone_watermark_unusable_free(z, order, alloc_flags);
 
 	/*
 	 * Fast check for order-0 only. If this fails then the reserves
 	 * need to be calculated.
 	 */
 	if (!order) {
-		long fast_free = free_pages - unusable_free;
+		long fast_free;
 
+		fast_free = free_pages;
+		fast_free -= __zone_watermark_unusable_free(z, 0, alloc_flags);
 		if (fast_free > mark + z->lowmem_reserve[highest_zoneidx])
 			return true;
 	}
_

Patches currently in -mm which might be from jaewon31.kim@xxxxxxxxxxx are

page_alloc-consider-highatomic-reserve-in-watermark-fast.patch
page_alloc-consider-highatomic-reserve-in-watermark-fast-v5.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux