diff options
author | Dan Williams <dan.j.williams@intel.com> | 2019-07-18 18:58:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-18 20:08:07 -0400 |
commit | a3619190d62ed9d66416891be2416f6bea2b3ca4 (patch) | |
tree | 01397efe9c3a2eac958de0a36c15ce015e7ec366 /drivers/nvdimm/pfn.h | |
parent | 7e3e888dfc138089f4c15a81b418e88f0978f744 (diff) |
libnvdimm/pfn: stop padding pmem namespaces to section alignment
Now that the mm core supports section-unaligned hotplug of ZONE_DEVICE
memory, we no longer need to add padding at pfn/dax device creation
time. The kernel will still honor padding established by older kernels.
Link: http://lkml.kernel.org/r/156092356588.979959.6793371748950931916.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reported-by: Jeff Moyer <jmoyer@redhat.com>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> [ppc64]
Cc: David Hildenbrand <david@redhat.com>
Cc: Jane Chu <jane.chu@oracle.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Toshi Kani <toshi.kani@hpe.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Wei Yang <richardw.yang@linux.intel.com>
Cc: Jason Gunthorpe <jgg@mellanox.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/nvdimm/pfn.h')
-rw-r--r-- | drivers/nvdimm/pfn.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/nvdimm/pfn.h b/drivers/nvdimm/pfn.h index dfb2bcda8f5a..7381673b7b70 100644 --- a/drivers/nvdimm/pfn.h +++ b/drivers/nvdimm/pfn.h | |||
@@ -33,18 +33,4 @@ struct nd_pfn_sb { | |||
33 | __le64 checksum; | 33 | __le64 checksum; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | #ifdef CONFIG_SPARSEMEM | ||
37 | #define PFN_SECTION_ALIGN_DOWN(x) SECTION_ALIGN_DOWN(x) | ||
38 | #define PFN_SECTION_ALIGN_UP(x) SECTION_ALIGN_UP(x) | ||
39 | #else | ||
40 | /* | ||
41 | * In this case ZONE_DEVICE=n and we will disable 'pfn' device support, | ||
42 | * but we still want pmem to compile. | ||
43 | */ | ||
44 | #define PFN_SECTION_ALIGN_DOWN(x) (x) | ||
45 | #define PFN_SECTION_ALIGN_UP(x) (x) | ||
46 | #endif | ||
47 | |||
48 | #define PHYS_SECTION_ALIGN_DOWN(x) PFN_PHYS(PFN_SECTION_ALIGN_DOWN(PHYS_PFN(x))) | ||
49 | #define PHYS_SECTION_ALIGN_UP(x) PFN_PHYS(PFN_SECTION_ALIGN_UP(PHYS_PFN(x))) | ||
50 | #endif /* __NVDIMM_PFN_H */ | 36 | #endif /* __NVDIMM_PFN_H */ |