aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-03-15 17:37:03 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2020-03-19 19:40:43 +0100
commitabe05f0c83f5947f84cc0e6408ee0930595389b7 (patch)
treea7b21f8615c0689d11ff811b5b0d7418f87bc6c6
parentbf4ae526e9f755654fde1463bc6fddd1efac8ccd (diff)
downloadbackports-abe05f0c83f5947f84cc0e6408ee0930595389b7.tar.gz
backports: page_ref.h: Exclude page_ref_count() on kernel >= 4.4.216v5.5.11-1
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 <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/page_ref.h2
1 files changed, 2 insertions, 0 deletions
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)
{