summaryrefslogtreecommitdiff
path: root/include/linux/huge_mm.h
diff options
context:
space:
mode:
authorHui Su <sh_def@163.com>2020-12-15 06:11:55 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-15 23:13:44 +0300
commite5dfacebe4a47fc9e4dd25246ed3599d60122e38 (patch)
treefd3289689d4a705e7ed5b9d36c5dab1f620e9f73 /include/linux/huge_mm.h
parent3f4b815a439adfb8f238335612c4b28bc10084d8 (diff)
downloadlinux-e5dfacebe4a47fc9e4dd25246ed3599d60122e38.tar.xz
mm/hugetlb.c: just use put_page_testzero() instead of page_count()
We test the page reference count is zero or not here, it can be a bug here if page refercence count is not zero. So we can just use put_page_testzero() instead of page_count(). Link: https://lkml.kernel.org/r/20201007170949.GA6416@rlk Signed-off-by: Hui Su <sh_def@163.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/huge_mm.h')
0 files changed, 0 insertions, 0 deletions