Skip to content

Commit bb48076

Browse files
committed
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 <[email protected]>
1 parent b722e40 commit bb48076

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/ext4/file.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,9 @@ static vm_fault_t ext4_dax_huge_fault(struct vm_fault *vmf, unsigned int order)
756756
return VM_FAULT_SIGBUS;
757757
}
758758
} else {
759+
result = filemap_fsnotify_fault(vmf);
760+
if (unlikely(result))
761+
return result;
759762
filemap_invalidate_lock_shared(mapping);
760763
}
761764
result = dax_iomap_fault(vmf, order, &pfn, &error, &ext4_iomap_ops);

0 commit comments

Comments
 (0)