]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 14:55:31 +0000 (16:55 +0200)
commit15e8cc0bf27b7183b80d4b989e40b331845e347c
tree7fed684a24ea8e1e2be857b4d8669b41c072eb20
parent1e46ce777fa1fe4a5fb7a47008679da669eb24b7
erofs: Fallback to normal access if DAX is not supported on extra device

[ Upstream commit c6993c4cb91803fceb82d6b5e0ec5e0aec2d0ad6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/super.c