]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/pstore/platform.c
pstore: Add new argument 'compressed' in pstore write callback
[karo-tx-linux.git] / fs / pstore / platform.c
index 422962ae9fc241ed05bddddd2a313150d5853f0b..20fa686f80fa268e9620cb1d544d294203c147a2 100644 (file)
@@ -149,6 +149,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
                unsigned long size;
                int hsize;
                size_t len;
+               bool compressed = false;
 
                dst = psinfo->buf;
                hsize = sprintf(dst, "%s#%d Part%d\n", why, oopscount, part);
@@ -159,7 +160,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
                        break;
 
                ret = psinfo->write(PSTORE_TYPE_DMESG, reason, &id, part,
-                                   oopscount, hsize, hsize + len, psinfo);
+                                   oopscount, compressed, hsize + len, psinfo);
                if (ret == 0 && reason == KMSG_DUMP_OOPS && pstore_is_mounted())
                        pstore_new_entry = 1;
 
@@ -221,10 +222,10 @@ static void pstore_register_console(void) {}
 static int pstore_write_compat(enum pstore_type_id type,
                               enum kmsg_dump_reason reason,
                               u64 *id, unsigned int part, int count,
-                              size_t hsize, size_t size,
+                              bool compressed, size_t size,
                               struct pstore_info *psi)
 {
-       return psi->write_buf(type, reason, id, part, psinfo->buf, hsize,
+       return psi->write_buf(type, reason, id, part, psinfo->buf, compressed,
                             size, psi);
 }