Re: [PATCH 05/10] fs/ext4: transition from deprecated .mmap hook to .mmap_prepare

2025-06-17 Thread Jan Kara
On Mon 16-06-25 20:33:24, Lorenzo Stoakes wrote: > Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file > callback"), the f_op->mmap() hook has been deprecated in favour of > f_op->mmap_prepare(). > > This callback is invoked in the mmap() logic far earlier, so error handling > can b

[PATCH 05/10] fs/ext4: transition from deprecated .mmap hook to .mmap_prepare

2025-06-16 Thread Lorenzo Stoakes
Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file callback"), the f_op->mmap() hook has been deprecated in favour of f_op->mmap_prepare(). This callback is invoked in the mmap() logic far earlier, so error handling can be performed more safely without complicated and bug-prone sta