All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.patch added to -mm tree
@ 2020-08-24 22:19 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-08-24 22:19 UTC (permalink / raw)
  To: anshuman.khandual, bhe, david, mike.kravetz, mm-commits


The patch titled
     Subject: mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool
has been added to the -mm tree.  Its filename is
     mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.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: Baoquan He <bhe@redhat.com>
Subject: mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool

Patch series "mm/hugetlb: Small cleanup and improvement", v2.


This patch (of 3):

Just like its neighbour is_hugetlb_entry_migration() has done.

Link: https://lkml.kernel.org/r/20200723032248.24772-1-bhe@redhat.com
Link: https://lkml.kernel.org/r/20200723032248.24772-2-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/hugetlb.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/mm/hugetlb.c~mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool
+++ a/mm/hugetlb.c
@@ -3780,17 +3780,17 @@ bool is_hugetlb_entry_migration(pte_t pt
 		return false;
 }
 
-static int is_hugetlb_entry_hwpoisoned(pte_t pte)
+static bool is_hugetlb_entry_hwpoisoned(pte_t pte)
 {
 	swp_entry_t swp;
 
 	if (huge_pte_none(pte) || pte_present(pte))
-		return 0;
+		return false;
 	swp = pte_to_swp_entry(pte);
 	if (non_swap_entry(swp) && is_hwpoison_entry(swp))
-		return 1;
+		return true;
 	else
-		return 0;
+		return false;
 }
 
 int copy_hugetlb_page_range(struct mm_struct *dst, struct mm_struct *src,
_

Patches currently in -mm which might be from bhe@redhat.com are

mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.patch
mm-hugetlbc-remove-the-unnecessary-non_swap_entry.patch
doc-vm-fix-typo-in-the-hugetlb-admin-documentation.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-24 22:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 22:19 + mm-hugetlbc-make-is_hugetlb_entry_hwpoisoned-return-bool.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.