diff mbox series

[8/8] backports: page_ref.h: Exclude page_ref_count() on kernel >= 4.4.216

Message ID 20200320233950.32257-9-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to version 5.5.10 | expand

Commit Message

Hauke Mehrtens March 20, 2020, 11:39 p.m. UTC
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>
---
 backport/backport-include/linux/page_ref.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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)
 {