summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-11-21 11:18:23 +0100
committerJan Kara <jack@suse.cz>2024-12-11 17:28:41 +0100
commitbb480760ffc7018e21ee6f60241c2b99ff26ee0e (patch)
tree412bfe0b9557b5fe0b20dc874d51582b3ce982bf
parentbtrfs: disable defrag on pre-content watched files (diff)
downloadlinux-bb480760ffc7018e21ee6f60241c2b99ff26ee0e.tar.xz
linux-bb480760ffc7018e21ee6f60241c2b99ff26ee0e.zip
ext4: add pre-content fsnotify hook for DAX faults
ext4 has its own handling for DAX faults. Add the pre-content fsnotify hook for this case. Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--fs/ext4/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 3bd96c3d4cd0..a5205149adba 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -756,6 +756,9 @@ retry:
return VM_FAULT_SIGBUS;
}
} else {
+ result = filemap_fsnotify_fault(vmf);
+ if (unlikely(result))
+ return result;
filemap_invalidate_lock_shared(mapping);
}
result = dax_iomap_fault(vmf, order, &pfn, &error, &ext4_iomap_ops);