Linux backports project
 help / color / mirror / Atom feed
From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Johannes Berg <johannes@sipsolutions.net>, backports@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: Re: [PATCH] backports: add page_ref backport
Date: Sat, 4 Jun 2016 22:23:05 +0200	[thread overview]
Message-ID: <575338A9.7070301@broadcom.com> (raw)
In-Reply-To: <1464703433-6026-1-git-send-email-johannes@sipsolutions.net>



On 31-05-16 16:03, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> Currently, only page_ref_inc() is needed, so backport only that.
> 
> Change-Id: I7b4d7eb4ccccf61d0921ef28a40b6628e8f2c1f8

Guess the change-id is internal ;-) The patch works for me.

Regards,
Arend

> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
>  backport/backport-include/linux/mm.h       |  1 +
>  backport/backport-include/linux/page_ref.h | 13 +++++++++++++
>  2 files changed, 14 insertions(+)
>  create mode 100644 backport/backport-include/linux/page_ref.h
> 
> diff --git a/backport/backport-include/linux/mm.h b/backport/backport-include/linux/mm.h
> index bac230364139..5b3cca6afb63 100644
> --- a/backport/backport-include/linux/mm.h
> +++ b/backport/backport-include/linux/mm.h
> @@ -1,6 +1,7 @@
>  #ifndef __BACKPORT_MM_H
>  #define __BACKPORT_MM_H
>  #include_next <linux/mm.h>
> +#include <linux/page_ref.h>
>  
>  #ifndef VM_NODUMP
>  /*
> diff --git a/backport/backport-include/linux/page_ref.h b/backport/backport-include/linux/page_ref.h
> new file mode 100644
> index 000000000000..0b890e9be415
> --- /dev/null
> +++ b/backport/backport-include/linux/page_ref.h
> @@ -0,0 +1,13 @@
> +#ifndef __BP_PAGE_REF_H
> +#define __BP_PAGE_REF_H
> +#include <linux/version.h>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
> +#include_next <linux/page_ref.h>
> +#else
> +static inline void page_ref_inc(struct page *page)
> +{
> +	atomic_inc(&page->_count);
> +}
> +#endif
> +
> +#endif /* __BP_PAGE_REF_H */
> 
--
To unsubscribe from this list: send the line "unsubscribe backports" in

      reply	other threads:[~2016-06-04 20:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 14:03 [PATCH] backports: add page_ref backport Johannes Berg
2016-06-04 20:23 ` Arend van Spriel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=575338A9.7070301@broadcom.com \
    --to=arend.vanspriel@broadcom.com \
    --cc=backports@vger.kernel.org \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox