1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Lorenzo Stoakes 20ca475d98
mm: rename call_mmap/mmap_prepare to vfs_mmap/mmap_prepare
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.

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/8d389f4994fa736aa8f9172bef8533c10a9e9011.1750099179.git.lorenzo.stoakes@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-06-17 13:35:23 +02:00
..
2025-06-13 13:39:15 -07:00
2025-06-14 09:25:22 -07:00
2025-06-03 11:53:55 -07:00
2025-05-30 20:21:36 +02:00
2025-06-03 13:24:14 -07:00
2025-06-07 10:05:35 -07:00
2025-05-27 15:22:01 -07:00
2025-06-03 08:39:20 -07:00
2025-06-05 08:49:30 -07:00
2025-06-03 11:53:55 -07:00
2025-06-14 09:25:22 -07:00
2025-06-08 11:33:00 -07:00
2025-05-28 14:55:35 -07:00
2025-06-05 08:20:21 -07:00
2025-06-02 11:04:29 -07:00
2025-05-31 07:53:30 -07:00
2025-06-05 08:07:24 -07:00
2025-06-04 11:26:17 -07:00
2025-05-29 08:15:35 -07:00
2025-05-27 10:27:54 -04:00