aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/apei/erst.c
diff options
context:
space:
mode:
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>2013-08-16 16:53:19 -0400
committerTony Luck <tony.luck@intel.com>2013-08-19 13:18:11 -0400
commit9a4e1398208d147a9240731a1f8cfe7d8cc4c553 (patch)
tree61b16758244f641d861839887b19d5a0a144223a /drivers/acpi/apei/erst.c
parentb0aad7a99c1df90c23ff4bac76eea9cf25049e9e (diff)
pstore: Introduce new argument 'compressed' in the read callback
Backends will set the flag 'compressed' after reading the log from persistent store to indicate the data being returned to pstore is compressed or not. 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/erst.c')
-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 bcdf8cefcb9e..b412e9137e36 100644
--- a/drivers/acpi/apei/erst.c
+++ b/drivers/acpi/apei/erst.c
@@ -935,7 +935,7 @@ static int erst_open_pstore(struct pstore_info *psi);
935static int erst_close_pstore(struct pstore_info *psi); 935static int erst_close_pstore(struct pstore_info *psi);
936static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 936static 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 bool *compressed, 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, bool compressed, 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);
@@ -991,7 +991,7 @@ static int erst_close_pstore(struct pstore_info *psi)
991 991
992static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count, 992static ssize_t erst_reader(u64 *id, enum pstore_type_id *type, int *count,
993 struct timespec *time, char **buf, 993 struct timespec *time, char **buf,
994 struct pstore_info *psi) 994 bool *compressed, struct pstore_info *psi)
995{ 995{
996 int rc; 996 int rc;
997 ssize_t len = 0; 997 ssize_t len = 0;