On Mon, Jun 16, 2025 at 10:10:30PM -0700, Christoph Hellwig wrote: > On Mon, Jun 16, 2025 at 08:33:20PM +0100, Lorenzo Stoakes wrote: > > The call_mmap() function violates the existing convention in > > include/linux/fs.h whereby invocations of virtual file system hooks is > > performed by functions prefixed with vfs_xxx(). > > > > Correct this by renaming call_mmap() to vfs_mmap(). This also avoids > > confusion as to the fact that f_op->mmap_prepare may be invoked here. > > > > Also rename __call_mmap_prepare() function to vfs_mmap_prepare() and adjust > > to accept a file parameter, this is useful later for nested file systems. > > > > Finally, fix up the VMA userland tests and ensure the mmap_prepare -> mmap > > shim is implemented there. > > Can we please just kill these silly call_* helpers instead?
The vfs_mmap() function now has some actual meaningful logic added in commit bb666b7c2707 ("mm: add mmap_prepare() compatibility layer for nested file systems"). > > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/