Skip to content

Commit f2ba5a5

Browse files
committed
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 <[email protected]> Reported-by: Cheng-mean Liu <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 0fb5c8d commit f2ba5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/ndctl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ enum nd_driver_flags {
209209
};
210210

211211
enum {
212-
ND_MIN_NAMESPACE_SIZE = 0x00400000,
212+
ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
213213
};
214214

215215
enum ars_masks {

0 commit comments

Comments
 (0)