From 3182385a8b126af62333f39a548d391888da5af9 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 15 Mar 2020 17:37:03 +0100 Subject: backports: page_ref.h: Exclude page_ref_count() on kernel >= 4.4.216 Upstream commit abe05f0c83f5947f84cc0e6408ee0930595389b7 page_ref_count() was backported to kernel version 4.4.216, do not add it in backports for this kernel version any more. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/page_ref.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backport/backport-include/linux/page_ref.h b/backport/backport-include/linux/page_ref.h index e45734ec..12fd86c9 100644 --- a/backport/backport-include/linux/page_ref.h +++ b/backport/backport-include/linux/page_ref.h @@ -9,10 +9,12 @@ static inline void page_ref_inc(struct page *page) atomic_inc(&page->_count); } +#if !LINUX_VERSION_IN_RANGE(4,4,216, 4,5,0) static inline int page_ref_count(struct page *page) { return atomic_read(&page->_count); } +#endif /* 4.4.216 <= x < 4.5 */ static inline int page_ref_sub_and_test(struct page *page, int nr) { -- cgit v1.2.3