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

Submitted by Kirill Tkhai on Aug. 25, 2020, 10:21 a.m.

Details

Message ID 159835089198.198228.7251426805125464060.stgit@localhost.localdomain
State New
Series "ext4 read_iter/fastmap: DAX handling"
Headers show

Commit Message

Kirill Tkhai Aug. 25, 2020, 10:21 a.m.
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@virtuozzo.com>
---
 fs/ext4/file.c |    2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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)