Skip to content

Commit

Permalink
libnvdimm, namespace: make min namespace size 4K
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Feb 2, 2018
1 parent 0fb5c8d commit f2ba5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/ndctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ enum nd_driver_flags {
};

enum {
ND_MIN_NAMESPACE_SIZE = 0x00400000,
ND_MIN_NAMESPACE_SIZE = PAGE_SIZE,
};

enum ars_masks {
Expand Down

0 comments on commit f2ba5a5

Please sign in to comment.