mm: dax: add comment for PFN_SPECIAL
PATCH 1/1 mm: dax: add comment for PFN_SPECIAL
The comment for PFN_SPECIAL is missed in pfn_t.h. Add comment to get consistent with other pfn flags.
Cc Dan Williams <[email protected]>
Signed-off-by Yang Shi <[email protected]>
--- include/linux/pfn_t.h | 1 + 1 file changed, 1 insertion(+)
include/linux/pfn_t.h +1 -0
@@ -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))
Signature · 1 line
1.8.3.1
Quoted 15 lines · On Thu, Sep 27, 2018 at 12:39 PM <[email protected]> wrote:
The comment for
PFN_SPECIALis missed inpfn_t.h. Add comment to get consistent with other pfn flags.Cc Dan Williams <[email protected]>Signed-off-by Yang Shi <[email protected]>--- include/linux/pfn_t.h | 1 + 1 file changed, 1 insertion(+)include/linux/pfn_t.h +0
-0
include/linux/pfn_t.h line 12
Quoted 4 lines
include/linux/pfn_t.h +1
-0@@ -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.