diff options
author | Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> | 2013-08-17 00:52:47 +0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-08-19 21:18:10 +0400 |
commit | b3b515bbd689ba3937cac2dd3fc55057f8c50329 (patch) | |
tree | 19cca07f50fb439d6e7d678516db2a9568b3e7ef /fs/pstore/ram.c | |
parent | a3a5e94131d96ecdee7b1873a9d6215dc0ea7fff (diff) | |
download | linux-b3b515bbd689ba3937cac2dd3fc55057f8c50329.tar.xz |
pstore: Add new argument 'compressed' in pstore write callback
Addition of new argument 'compressed' in the write call back will
help the backend to know if the data passed from pstore is compressed
or not (In case where compression fails.). If compressed, the backend
can add a tag indicating the data is compressed while writing to
persistent store.
Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/ram.c')
-rw-r--r-- | fs/pstore/ram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index a6119f9469e2..fe7188f742b7 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -196,7 +196,7 @@ static int notrace ramoops_pstore_write_buf(enum pstore_type_id type, enum kmsg_dump_reason reason, u64 *id, unsigned int part, const char *buf, - size_t hsize, size_t size, + bool compressed, size_t size, struct pstore_info *psi) { struct ramoops_context *cxt = psi->data; |