Orabug:
25852910
With this change libdax can detect that mmap failed due to lack of flow
control in DAX HW and it can proceed with dax_subpage allocation.
Reviewed-by: Rob Gardner <rob.gardner@oracle.com>
Signed-off-by: Sanath Kumar <sanath.s.kumar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
if (dax_no_flow_ctl && len != DAX_SYN_LARGE_PAGE_SIZE) {
dax_map_dbg("unsupported length 0x%lx != 0x%lx virtual page size",
len, DAX_SYN_LARGE_PAGE_SIZE);
+ ret = -EOVERFLOW;
goto done;
}