mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
UPSTREAM: libnvdimm, namespace: make min namespace size 4K
The arbitrary 4MB minimum namespace size turns out to be too large for some environments. Quoting Cheng-mean Liu: In the case of emulated NVDIMM devices in the VM environment, there are scenarios that NVDIMM device with much smaller sizes are desired, for example, we might use a single enumerated NVDIMM DAX device for representing each container layer, which in some cases could be just a few KBs size. PAGE_SIZE is the minimum where we can still support DAX of at least a single page. Cc: Matthew Wilcox <willy@infradead.org> Reported-by: Cheng-mean Liu <soccerl@microsoft.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> (cherry picked from commit f2ba5a5baecf795c2150826bd0c95fc3f7f3d226) Bug: 146400078 Bug: 148297388 Change-Id: I362c3d1bf27921f69e78a9c34674176e85e391f7 Signed-off-by: Alistair Delva <adelva@google.com>
This commit is contained in:
parent
8f92c773d6
commit
3a88df7f17
@ -257,7 +257,7 @@ enum nd_driver_flags {
|
||||
};
|
||||
|
||||
enum {
|
||||
ND_MIN_NAMESPACE_SIZE = 0x00400000,
|
||||
ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
|
||||
};
|
||||
|
||||
enum ars_masks {
|
||||
|
Loading…
x
Reference in New Issue
Block a user