diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index ee073146aaa7..ea818ff739cd 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -377,6 +377,7 @@ enum page_entry_size { | |||
377 | struct vm_operations_struct { | 377 | struct vm_operations_struct { |
378 | void (*open)(struct vm_area_struct * area); | 378 | void (*open)(struct vm_area_struct * area); |
379 | void (*close)(struct vm_area_struct * area); | 379 | void (*close)(struct vm_area_struct * area); |
380 | int (*split)(struct vm_area_struct * area, unsigned long addr); | ||
380 | int (*mremap)(struct vm_area_struct * area); | 381 | int (*mremap)(struct vm_area_struct * area); |
381 | int (*fault)(struct vm_fault *vmf); | 382 | int (*fault)(struct vm_fault *vmf); |
382 | int (*huge_fault)(struct vm_fault *vmf, enum page_entry_size pe_size); | 383 | int (*huge_fault)(struct vm_fault *vmf, enum page_entry_size pe_size); |
@@ -1379,6 +1380,19 @@ long get_user_pages_locked(unsigned long start, unsigned long nr_pages, | |||
1379 | unsigned int gup_flags, struct page **pages, int *locked); | 1380 | unsigned int gup_flags, struct page **pages, int *locked); |
1380 | long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, | 1381 | long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, |
1381 | struct page **pages, unsigned int gup_flags); | 1382 | struct page **pages, unsigned int gup_flags); |
1383 | #ifdef CONFIG_FS_DAX | ||
1384 | long get_user_pages_longterm(unsigned long start, unsigned long nr_pages, | ||
1385 | unsigned int gup_flags, struct page **pages, | ||
1386 | struct vm_area_struct **vmas); | ||
1387 | #else | ||
1388 | static inline long get_user_pages_longterm(unsigned long start, | ||
1389 | unsigned long nr_pages, unsigned int gup_flags, | ||
1390 | struct page **pages, struct vm_area_struct **vmas) | ||
1391 | { | ||
1392 | return get_user_pages(start, nr_pages, gup_flags, pages, vmas); | ||
1393 | } | ||
1394 | #endif /* CONFIG_FS_DAX */ | ||
1395 | |||
1382 | int get_user_pages_fast(unsigned long start, int nr_pages, int write, | 1396 | int get_user_pages_fast(unsigned long start, int nr_pages, int write, |
1383 | struct page **pages); | 1397 | struct page **pages); |
1384 | 1398 | ||