diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-03-15 17:37:03 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-03-21 15:31:23 +0100 |
commit | 3182385a8b126af62333f39a548d391888da5af9 (patch) | |
tree | 18953c7ee046afcd0fa0113587f9e48b663a5aeb | |
parent | 67d52a29b577519933e6841c2fc0afb1654e6be3 (diff) |
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 <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/page_ref.h | 2 |
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) { |