[Devel] [PATCH RH7 1/3] ext4: Disable ploop's fastmap for DAX

Kirill Tkhai ktkhai at virtuozzo.com
Tue Aug 25 13:21:32 MSK 2020


It should be handled in other way, so disable it for now.

https://jira.sw.ru/browse/PSBM-105347

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 fs/ext4/file.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index cc39aff54e03..1846544a82aa 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -139,6 +139,8 @@ static int ext4_fastmap(struct inode *inode, sector_t lblk_sec,
 		return -ENOENT;
 	if (ext4_should_journal_data(inode))
 		return -ENOENT;
+	if (IS_DAX(inode))
+		return -ENOENT;
 
 	unaligned_aio = ext4_unaligned_aio(inode, len, pos);
 	if (unaligned_aio)




More information about the Devel mailing list