From 52409fae3e4b8d16b68b61902fc09075cd97b75d Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Sun, 2 Jul 2017 16:41:37 +0200 Subject: Backports generated from 4.11 kernel Initial commit. Signed-off-by: Dominik Sliwa --- backport-include/linux/page_ref.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backport-include/linux/page_ref.h (limited to 'backport-include/linux/page_ref.h') diff --git a/backport-include/linux/page_ref.h b/backport-include/linux/page_ref.h new file mode 100644 index 0000000..55fc14f --- /dev/null +++ b/backport-include/linux/page_ref.h @@ -0,0 +1,13 @@ +#ifndef __BP_PAGE_REF_H +#define __BP_PAGE_REF_H +#include +#if LINUX_VERSION_IS_GEQ(4,6,0) +#include_next +#else +static inline void page_ref_inc(struct page *page) +{ + atomic_inc(&page->_count); +} +#endif + +#endif /* __BP_PAGE_REF_H */ -- cgit v1.2.3