aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/apei
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-08-16 16:52:47 -0400
committerTony Luck <tony.luck@intel.com>2013-08-19 13:18:10 -0400
commitb3b515bbd689ba3937cac2dd3fc55057f8c50329 (patch)
tree19cca07f50fb439d6e7d678516db2a9568b3e7ef /drivers/acpi/apei
parenta3a5e94131d96ecdee7b1873a9d6215dc0ea7fff (diff)
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 'drivers/acpi/apei')
-rw-r--r--drivers/acpi/apei/erst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
index 6885809abcd8..bcdf8cefcb9e 100644
--- a/drivers/acpi/apei/erst.c
+++ b/drivers/acpi/apei/erst.c
@@ -937,7 +937,7 @@ static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count,
937 struct timespec *time, char **buf, 937 struct timespec *time, char **buf,
938 struct pstore_info *psi); 938 struct pstore_info *psi);
939static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason, 939static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason,
940 u64 *id, unsigned int part, int count, size_t hsize, 940 u64 *id, unsigned int part, int count, bool compressed,
941 size_t size, struct pstore_info *psi); 941 size_t size, struct pstore_info *psi);
942static int erst_clearer(enum pstore_type_id type, u64 id, int count, 942static int erst_clearer(enum pstore_type_id type, u64 id, int count,
943 struct timespec time, struct pstore_info *psi); 943 struct timespec time, struct pstore_info *psi);
@@ -1057,7 +1057,7 @@ out:
1057} 1057}
1058 1058
1059static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason, 1059static int erst_writer(enum pstore_type_id type, enum kmsg_dump_reason reason,
1060 u64 *id, unsigned int part, int count, size_t hsize, 1060 u64 *id, unsigned int part, int count, bool compressed,
1061 size_t size, struct pstore_info *psi) 1061 size_t size, struct pstore_info *psi)
1062{ 1062{
1063 struct cper_pstore_record *rcd = (struct cper_pstore_record *) 1063 struct cper_pstore_record *rcd = (struct cper_pstore_record *)