Commit 2e9ee850 authored by Committed by Theodore Ts'o
ext4: Use page_mkwrite vma_operations to get mmap write notification.
We would like to get notified when we are doing a write on mmap section. This is needed with respect to preallocated area. We split the preallocated area into initialzed extent and uninitialzed extent in the call back. This let us handle ENOSPC better. Otherwise we get ENOSPC in the writepage and that would result in data loss. The changes are also needed to handle ENOSPC when writing to an mmap section of files with holes. Acked-by: Jan Kara <email@example.com> Signed-off-by: Aneesh Kumar K.V <firstname.lastname@example.org> Signed-off-by: Mingming Cao <email@example.com> Signed-off-by: "Theodore Ts'o" <firstname.lastname@example.org>
Showing with 80 additions and 1 deletion