summaryrefslogtreecommitdiffstats
path: root/patches/boot_time_opt/0151-mm-Export-do_madvise.patch
diff options
context:
space:
mode:
authorMartin Borg <martin.borg@enea.com>2018-03-23 14:01:03 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2018-03-26 09:57:31 +0200
commitc4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7 (patch)
treee46d5f9bceca1947817b7739d366aa44faea9be1 /patches/boot_time_opt/0151-mm-Export-do_madvise.patch
parentdfc8946f58bbf4aa3a345c4fb5d5895502936edd (diff)
downloadenea-kernel-cache-c4bd5f6e084a6ced2c7a2f76798d0a34947ffeb7.tar.gz
boot_time_opt: update host boot time optimization patches for 4.14
The new patches are based on: https://github.com/clearlinux-pkgs/linux-lts commit 5595fe425a52af6734235a1a953b6b03210060ec Signed-off-by: Martin Borg <martin.borg@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0151-mm-Export-do_madvise.patch')
-rw-r--r--patches/boot_time_opt/0151-mm-Export-do_madvise.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/boot_time_opt/0151-mm-Export-do_madvise.patch b/patches/boot_time_opt/0151-mm-Export-do_madvise.patch
index a6dbff7..165f16c 100644
--- a/patches/boot_time_opt/0151-mm-Export-do_madvise.patch
+++ b/patches/boot_time_opt/0151-mm-Export-do_madvise.patch
@@ -1,4 +1,4 @@
1From 99b4cdcce43ad0f706120bef26fef8c628c572cf Mon Sep 17 00:00:00 2001 1From fc4ee73f68d0e9da4ba61112416849c18d933882 Mon Sep 17 00:00:00 2001
2From: Sebastien Boeuf <sebastien.boeuf@intel.com> 2From: Sebastien Boeuf <sebastien.boeuf@intel.com>
3Date: Mon, 23 Jan 2017 15:03:52 -0800 3Date: Mon, 23 Jan 2017 15:03:52 -0800
4Subject: [PATCH 151/154] mm: Export do_madvise() 4Subject: [PATCH 151/154] mm: Export do_madvise()
@@ -21,10 +21,10 @@ Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
21 2 files changed, 23 insertions(+), 4 deletions(-) 21 2 files changed, 23 insertions(+), 4 deletions(-)
22 22
23diff --git a/include/linux/mm.h b/include/linux/mm.h 23diff --git a/include/linux/mm.h b/include/linux/mm.h
24index 0b5b2e4df14e..925ec25f99a8 100644 24index 43edf659453b..c3153e9ee7ea 100644
25--- a/include/linux/mm.h 25--- a/include/linux/mm.h
26+++ b/include/linux/mm.h 26+++ b/include/linux/mm.h
27@@ -2450,5 +2450,7 @@ void __init setup_nr_node_ids(void); 27@@ -2603,5 +2603,7 @@ void __init setup_nr_node_ids(void);
28 static inline void setup_nr_node_ids(void) {} 28 static inline void setup_nr_node_ids(void) {}
29 #endif 29 #endif
30 30
@@ -33,10 +33,10 @@ index 0b5b2e4df14e..925ec25f99a8 100644
33 #endif /* __KERNEL__ */ 33 #endif /* __KERNEL__ */
34 #endif /* _LINUX_MM_H */ 34 #endif /* _LINUX_MM_H */
35diff --git a/mm/madvise.c b/mm/madvise.c 35diff --git a/mm/madvise.c b/mm/madvise.c
36index 93fb63e88b5e..c8bbf93d4978 100644 36index 375cf32087e4..3798dd68692e 100644
37--- a/mm/madvise.c 37--- a/mm/madvise.c
38+++ b/mm/madvise.c 38+++ b/mm/madvise.c
39@@ -618,9 +618,7 @@ madvise_behavior_valid(int behavior) 39@@ -730,9 +730,7 @@ madvise_behavior_valid(int behavior)
40 } 40 }
41 41
42 /* 42 /*
@@ -47,7 +47,7 @@ index 93fb63e88b5e..c8bbf93d4978 100644
47 * handle paging I/O in this VM area. The idea is to help the kernel 47 * handle paging I/O in this VM area. The idea is to help the kernel
48 * use appropriate read-ahead and caching techniques. The information 48 * use appropriate read-ahead and caching techniques. The information
49 * provided is advisory only, and can be safely disregarded by the 49 * provided is advisory only, and can be safely disregarded by the
50@@ -673,7 +671,7 @@ madvise_behavior_valid(int behavior) 50@@ -790,7 +788,7 @@ madvise_behavior_valid(int behavior)
51 * -EBADF - map exists, but area maps something that isn't a file. 51 * -EBADF - map exists, but area maps something that isn't a file.
52 * -EAGAIN - a kernel resource was temporarily unavailable. 52 * -EAGAIN - a kernel resource was temporarily unavailable.
53 */ 53 */
@@ -56,7 +56,7 @@ index 93fb63e88b5e..c8bbf93d4978 100644
56 { 56 {
57 unsigned long end, tmp; 57 unsigned long end, tmp;
58 struct vm_area_struct *vma, *prev; 58 struct vm_area_struct *vma, *prev;
59@@ -767,3 +765,22 @@ SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) 59@@ -885,3 +883,22 @@ SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior)
60 60
61 return error; 61 return error;
62 } 62 }
@@ -80,5 +80,5 @@ index 93fb63e88b5e..c8bbf93d4978 100644
80+ return do_madvise(start, len_in, behavior); 80+ return do_madvise(start, len_in, behavior);
81+} 81+}
82-- 82--
832.12.1 832.15.0
84 84