linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: dax: add comment for PFN_SPECIAL
@ 2018-09-27 19:38 Yang Shi
  2018-09-27 21:08 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Shi @ 2018-09-27 19:38 UTC (permalink / raw)
  To: dan.j.williams, akpm; +Cc: yang.shi, linux-mm, linux-kernel

The comment for PFN_SPECIAL is missed in pfn_t.h. Add comment to get
consistent with other pfn flags.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
---
 include/linux/pfn_t.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/pfn_t.h b/include/linux/pfn_t.h
index 21713dc..d2e5dd4 100644
--- a/include/linux/pfn_t.h
+++ b/include/linux/pfn_t.h
@@ -9,6 +9,7 @@
  * PFN_SG_LAST - pfn references a page and is the last scatterlist entry
  * PFN_DEV - pfn is not covered by system memmap by default
  * PFN_MAP - pfn has a dynamic page mapping established by a device driver
+ * PFN_SPECIAL - indicates that _PAGE_SPECIAL should be used for DAX ptes
  */
 #define PFN_FLAGS_MASK (((u64) ~PAGE_MASK) << (BITS_PER_LONG_LONG - PAGE_SHIFT))
 #define PFN_SG_CHAIN (1ULL << (BITS_PER_LONG_LONG - 1))
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm: dax: add comment for PFN_SPECIAL
  2018-09-27 19:38 [PATCH] mm: dax: add comment for PFN_SPECIAL Yang Shi
@ 2018-09-27 21:08 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2018-09-27 21:08 UTC (permalink / raw)
  To: yang.shi; +Cc: Andrew Morton, Linux MM, Linux Kernel Mailing List

On Thu, Sep 27, 2018 at 12:39 PM <yang.shi@linux.alibaba.com> wrote:
>
> The comment for PFN_SPECIAL is missed in pfn_t.h. Add comment to get
> consistent with other pfn flags.
>
> Cc: Dan Williams <dan.j.williams@intel.com>
> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
> ---
>  include/linux/pfn_t.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/pfn_t.h b/include/linux/pfn_t.h
> index 21713dc..d2e5dd4 100644
> --- a/include/linux/pfn_t.h
> +++ b/include/linux/pfn_t.h
> @@ -9,6 +9,7 @@
>   * PFN_SG_LAST - pfn references a page and is the last scatterlist entry
>   * PFN_DEV - pfn is not covered by system memmap by default
>   * PFN_MAP - pfn has a dynamic page mapping established by a device driver
> + * PFN_SPECIAL - indicates that _PAGE_SPECIAL should be used for DAX ptes

That's not quite accurate, I would change this to:

PFN_SPECIAL - for CONFIG_FS_DAX_LIMITED builds to allow XIP, but not
get_user_pages.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-27 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 19:38 [PATCH] mm: dax: add comment for PFN_SPECIAL Yang Shi
2018-09-27 21:08 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).