diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-03-16 14:21:43 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-15 16:10:26 +0200 |
commit | 62346c6cb28b043f2a6e95337d9081ec0b37b5f5 (patch) | |
tree | 3ef217164ef04ee6fd02d13f80aa9fb4fd1064b2 /mm | |
parent | io_uring: Avoid anonymous enums in io_uring uapi (diff) | |
download | linux-62346c6cb28b043f2a6e95337d9081ec0b37b5f5.tar.xz linux-62346c6cb28b043f2a6e95337d9081ec0b37b5f5.zip |
mm: add nommu variant of vm_insert_pages()
An identical one exists for vm_insert_page(), add one for
vm_insert_pages() to avoid needing to check for CONFIG_MMU in code using
it.
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/nommu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 5ec8f44e7ce9..a34a0e376611 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -355,6 +355,13 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, } EXPORT_SYMBOL(vm_insert_page); +int vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, + struct page **pages, unsigned long *num) +{ + return -EINVAL; +} +EXPORT_SYMBOL(vm_insert_pages); + int vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num) { |