Re: [PATCH 02/10] mm/nommu: use file_has_valid_mmap_hooks() helper

2025-06-19 Thread Jan Kara
On Mon 16-06-25 20:33:21, 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(). > > Therefore, update the check for file operations supporting mmap() by using > the fi

Re: [PATCH 02/10] mm/nommu: use file_has_valid_mmap_hooks() helper

2025-06-19 Thread Vlastimil Babka
On 6/16/25 21:33, 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(). > > Therefore, update the check for file operations supporting mmap() by using > the file_has_v

[PATCH 02/10] mm/nommu: use file_has_valid_mmap_hooks() helper

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(). Therefore, update the check for file operations supporting mmap() by using the file_has_valid_mmap_hooks() helper function, which checks for e