diff options
author | 2020-12-14 19:11:55 -0800 | |
---|---|---|
committer | 2020-12-15 12:13:44 -0800 | |
commit | e5dfacebe4a47fc9e4dd25246ed3599d60122e38 (patch) | |
tree | fd3289689d4a705e7ed5b9d36c5dab1f620e9f73 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm,hwpoison: return -EBUSY when migration fails (diff) | |
download | wireguard-linux-e5dfacebe4a47fc9e4dd25246ed3599d60122e38.tar.xz wireguard-linux-e5dfacebe4a47fc9e4dd25246ed3599d60122e38.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions