erofs: Fallback to normal access if DAX is not supported on extra device
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Mon, 4 Aug 2025 08:20:31 +0000 (16:20 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 10 Aug 2025 22:02:19 +0000 (06:02 +0800)
commitc6993c4cb91803fceb82d6b5e0ec5e0aec2d0ad6
tree57fb5bc6dcc3ad4c16a6abbf9158d216e3ad8471
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
erofs: Fallback to normal access if DAX is not supported on extra device

If using multiple devices, we should check if the extra device support
DAX instead of checking the primary device when deciding if to use DAX
to access a file.

If an extra device does not support DAX we should fallback to normal
access otherwise the data on that device will be inaccessible.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Friendy Su <friendy.su@sony.com>
Reviewed-by: Jacky Cao <jacky.cao@sony.com>
Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20250804082030.3667257-2-Yuezhang.Mo@sony.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/super.c