[PATCH 01/10] mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare
Christoph Hellwig
hch at infradead.org
Mon Jun 16 22:10:30 PDT 2025
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?
More information about the linux-afs
mailing list