mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
1df4ca0155
Replace the following fs/Kconfig:FS_DAX dependency:
depends on !(ARM || MIPS || SPARC)
By a runtime check within alloc_dax(). This runtime check returns
ERR_PTR(-EOPNOTSUPP) if the @ops parameter is non-NULL (which means
the kernel is using an aliased mapping) on an architecture which
has data cache aliasing.
Change the return value from NULL to PTR_ERR(-EOPNOTSUPP) for
CONFIG_DAX=n for consistency.
This is done in preparation for using cpu_dcache_is_aliasing() in a
following change which will properly support architectures which detect
data cache aliasing at runtime.
Link: https://lkml.kernel.org/r/20240215144633.96437-8-mathieu.desnoyers@efficios.com
Fixes:
|
||
---|---|---|
.. | ||
hmem | ||
pmem | ||
bus.c | ||
bus.h | ||
cxl.c | ||
dax-private.h | ||
device.c | ||
Kconfig | ||
kmem.c | ||
Makefile | ||
pmem.c | ||
super.c |