+ include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock.patch added to -mm tree

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

 



The patch titled
     Subject: include/linux/huge_mm.h: return NULL instead of false for pmd_trans_huge_lock()
has been added to the -mm tree.  Its filename is
     include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock.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/SubmitChecklist when testing your code ***

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

------------------------------------------------------
From: Chen Gang <chengang@xxxxxxxxxxxxxxxx>
Subject: include/linux/huge_mm.h: return NULL instead of false for pmd_trans_huge_lock()

The return value of pmd_trans_huge_lock() is a pointer, not a boolean
value, so use NULL instead of false as the return value.

Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx>
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/huge_mm.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/huge_mm.h~include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock include/linux/huge_mm.h
--- a/include/linux/huge_mm.h~include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock
+++ a/include/linux/huge_mm.h
@@ -127,7 +127,7 @@ static inline spinlock_t *pmd_trans_huge
 	if (pmd_trans_huge(*pmd) || pmd_devmap(*pmd))
 		return __pmd_trans_huge_lock(pmd, vma);
 	else
-		return false;
+		return NULL;
 }
 static inline int hpage_nr_pages(struct page *page)
 {
_

Patches currently in -mm which might be from chengang@xxxxxxxxxxxxxxxx are

include-linux-huge_mmh-return-null-instead-of-false-for-pmd_trans_huge_lock.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux