diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:47:41 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:47:41 -0500 |
| commit | 2fc10246766fce0b560f015e1c0b6ff29fb4ced0 (patch) | |
| tree | 0510322a0d3a8171afb1e06a7ce809f023578825 /include/linux/mm.h | |
| parent | 05eec0c931a63d8709009e3ac6a083072666fa0f (diff) | |
| parent | 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff) | |
Merge 4.15-rc3 into char-misc-next
We want the fixes and changes in here for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 | ||
