Commit 42de3ad
mm/shmem: support vm_uffd_ops API
Add support for the new vm_uffd_ops API for shmem. Note that this only
introduces the support, the API is not yet used by core mm.
Due to the tailored uffd_copy() API, shmem is extremely easy to support it
by reusing the existing mfill function.
It only needs a separate uffd_get_folio() definition but that's oneliner.
Link: https://lkml.kernel.org/r/20250627154655.2085903-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: James Houghton <jthoughton@google.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 3089067 commit 42de3ad
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3161 | 3161 | | |
3162 | 3162 | | |
3163 | 3163 | | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
3164 | 3171 | | |
3165 | 3172 | | |
3166 | 3173 | | |
| |||
5204 | 5211 | | |
5205 | 5212 | | |
5206 | 5213 | | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
| 5217 | + | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
5207 | 5227 | | |
5208 | 5228 | | |
5209 | 5229 | | |
| |||
5306 | 5326 | | |
5307 | 5327 | | |
5308 | 5328 | | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
5309 | 5332 | | |
5310 | 5333 | | |
5311 | 5334 | | |
| |||
5315 | 5338 | | |
5316 | 5339 | | |
5317 | 5340 | | |
| 5341 | + | |
| 5342 | + | |
| 5343 | + | |
5318 | 5344 | | |
5319 | 5345 | | |
5320 | 5346 | | |
| |||
0 commit comments