Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / arch / s390 / appldata / appldata_mem.c
index a21e308..f0e2fbe 100644 (file)
@@ -68,7 +68,7 @@ struct appldata_mem_data {
        u64 pgmajfault;         /* page faults (major only) */
 // <-- New in 2.6
 
-} appldata_mem_data;
+} __attribute__((packed)) appldata_mem_data;
 
 
 static inline void appldata_debug_print(struct appldata_mem_data *mem_data)
@@ -102,8 +102,12 @@ static inline void appldata_debug_print(struct appldata_mem_data *mem_data)
  */
 static void appldata_get_mem_data(void *data)
 {
-       struct sysinfo val;
-       struct page_state ps;
+       /*
+        * don't put large structures on the stack, we are
+        * serialized through the appldata_ops_lock and can use static
+        */
+       static struct sysinfo val;
+       static struct page_state ps;
        struct appldata_mem_data *mem_data;
 
        mem_data = data;