mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
76ebcd2fa4
This commit contains centos-7 patches rebased and adjusted to work with recent rhel minors so that integration tests actually pass on those. Signed-off-by: Artem Savkov <asavkov@redhat.com>
30 lines
722 B
Diff
30 lines
722 B
Diff
Index: kernel-rhel7/fs/proc/meminfo.c
|
|
===================================================================
|
|
--- kernel-rhel7.orig/fs/proc/meminfo.c
|
|
+++ kernel-rhel7/fs/proc/meminfo.c
|
|
@@ -20,6 +20,8 @@ void __attribute__((weak)) arch_report_m
|
|
{
|
|
}
|
|
|
|
+static int foo = 5;
|
|
+
|
|
static int meminfo_proc_show(struct seq_file *m, void *v)
|
|
{
|
|
struct sysinfo i;
|
|
@@ -110,6 +112,7 @@ static int meminfo_proc_show(struct seq_
|
|
"CmaTotal: %8lu kB\n"
|
|
"CmaFree: %8lu kB\n"
|
|
#endif
|
|
+ "kpatch: %d"
|
|
,
|
|
K(i.totalram),
|
|
K(i.freeram),
|
|
@@ -175,6 +178,7 @@ static int meminfo_proc_show(struct seq_
|
|
, K(totalcma_pages)
|
|
, K(global_page_state(NR_FREE_CMA_PAGES))
|
|
#endif
|
|
+ ,foo
|
|
);
|
|
|
|
hugetlb_report_meminfo(m);
|