mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
b722e40be2
commit
bb480760ff
@ -756,6 +756,9 @@ static vm_fault_t ext4_dax_huge_fault(struct vm_fault *vmf, unsigned int order)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user