All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] vmalloc: Introduce vmap_file()
@ 2025-01-31  0:18 Vishal Moola (Oracle)
  2025-01-31  0:18 ` [PATCH 1/2] mm/vmalloc: " Vishal Moola (Oracle)
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Vishal Moola (Oracle) @ 2025-01-31  0:18 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, hch, urezki, intel-gfx,
	Vishal Moola (Oracle)

Currently, users have to call vmap() or vmap_pfn() to map pages to
kernel virtual space. vmap() requires the page references, and
vmap_pfn() requires page pfns. If we have a file but no page references,
we have to do extra work to map them.

Create a function, vmap_file(), to map a specified range of a given
file to kernel virtual space. Also convert a user that benefits from
vmap_file().

Vishal Moola (Oracle) (2):
  mm/vmalloc: Introduce vmap_file()
  drm: Use vmap_file() in shmem_pin_map()

 drivers/gpu/drm/i915/gt/shmem_utils.c | 23 +------
 include/linux/vmalloc.h               |  2 +
 mm/vmalloc.c                          | 97 +++++++++++++++++++++++++++
 3 files changed, 102 insertions(+), 20 deletions(-)

-- 
2.47.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-04-14 17:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-31  0:18 [PATCH 0/2] vmalloc: Introduce vmap_file() Vishal Moola (Oracle)
2025-01-31  0:18 ` [PATCH 1/2] mm/vmalloc: " Vishal Moola (Oracle)
2025-01-31  7:09   ` Christoph Hellwig
2025-02-03 19:23     ` Vishal Moola
2025-01-31  0:18 ` [PATCH 2/2] drm: Use vmap_file() in shmem_pin_map() Vishal Moola (Oracle)
2025-01-31  0:48 ` [PATCH 0/2] vmalloc: Introduce vmap_file() Andrew Morton
2025-02-03 18:53   ` Vishal Moola
2025-04-08 14:04     ` Brendan Jackman
2025-01-31  7:10 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.