summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChen Gang <chengang@emindsoft.com.cn>2016-04-01 14:31:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-04-01 17:03:37 -0500
commit969e8d7e47f93ef693028667480558de8f70523f (patch)
tree3a7f542dc53574f7804850b74ff69171352b9c6b /include
parent0b355eaaaae9bb8bb08b563ef55ecb23a4d743da (diff)
downloadlinux-969e8d7e47f93ef693028667480558de8f70523f.tar.gz
linux-969e8d7e47f93ef693028667480558de8f70523f.tar.bz2
linux-969e8d7e47f93ef693028667480558de8f70523f.zip
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@gmail.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/huge_mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h
index 79b0ef6aaa14..7008623e24b1 100644
--- a/include/linux/huge_mm.h
+++ b/include/linux/huge_mm.h
@@ -127,7 +127,7 @@ static inline spinlock_t *pmd_trans_huge_lock(pmd_t *pmd,
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)
{