aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore/platform.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:35:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:35:10 -0400
commit57d326169e878a1a37b2bccd1cf81f6809ee67b9 (patch)
tree86ed74ae4dc2beaebce1c67b8459f1873b777d3a /fs/pstore/platform.c
parent7b215de3d0abbc4f6daf2efd19e8809af0564490 (diff)
parent0244756edc4b98c129e92c7061d9f383708cf786 (diff)
Merge branch 'akpm' (patches from Andrew Morton) into next
Merge more updates from Andrew Morton: - Most of the rest of MM. This includes "mark remap_file_pages syscall as deprecated" but the actual "replace remap_file_pages syscall with emulation" is held back. I guess we'll need to work out when to pull the trigger on that one. - various minor cleanups to obscure filesystems - the drivers/rtc queue - hfsplus updates - ufs, hpfs, fatfs, affs, reiserfs - Documentation/ - signals - procfs - cpu hotplug - lib/idr.c - rapidio - sysctl - ipc updates * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (171 commits) ufs: sb mutex merge + mutex_destroy powerpc: update comments for generic idle conversion cris: update comments for generic idle conversion idle: remove cpu_idle() forward declarations nbd: zero from and len fields in NBD_CMD_DISCONNECT. mm: convert some level-less printks to pr_* MAINTAINERS: adi-buildroot-devel is moderated MAINTAINERS: add linux-api for review of API/ABI changes mm/kmemleak-test.c: use pr_fmt for logging fs/dlm/debug_fs.c: replace seq_printf by seq_puts fs/dlm/lockspace.c: convert simple_str to kstr fs/dlm/config.c: convert simple_str to kstr mm: mark remap_file_pages() syscall as deprecated mm: memcontrol: remove unnecessary memcg argument from soft limit functions mm: memcontrol: clean up memcg zoneinfo lookup mm/memblock.c: call kmemleak directly from memblock_(alloc|free) mm/mempool.c: update the kmemleak stack trace for mempool allocations lib/radix-tree.c: update the kmemleak stack trace for radix tree allocations mm: introduce kmemleak_update_trace() mm/kmemleak.c: use %u to print ->checksum ...
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r--fs/pstore/platform.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 46d269e38706..0a9b72cdfeca 100644
--- a/fs/pstore/platform.c
+++ b/fs/pstore/platform.c
@@ -18,6 +18,8 @@
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */ 19 */
20 20
21#define pr_fmt(fmt) "pstore: " fmt
22
21#include <linux/atomic.h> 23#include <linux/atomic.h>
22#include <linux/types.h> 24#include <linux/types.h>
23#include <linux/errno.h> 25#include <linux/errno.h>
@@ -224,14 +226,12 @@ static void allocate_buf_for_compression(void)
224 zlib_inflate_workspacesize()); 226 zlib_inflate_workspacesize());
225 stream.workspace = kmalloc(size, GFP_KERNEL); 227 stream.workspace = kmalloc(size, GFP_KERNEL);
226 if (!stream.workspace) { 228 if (!stream.workspace) {
227 pr_err("pstore: No memory for compression workspace; " 229 pr_err("No memory for compression workspace; skipping compression\n");
228 "skipping compression\n");
229 kfree(big_oops_buf); 230 kfree(big_oops_buf);
230 big_oops_buf = NULL; 231 big_oops_buf = NULL;
231 } 232 }
232 } else { 233 } else {
233 pr_err("No memory for uncompressed data; " 234 pr_err("No memory for uncompressed data; skipping compression\n");
234 "skipping compression\n");
235 stream.workspace = NULL; 235 stream.workspace = NULL;
236 } 236 }
237 237
@@ -455,8 +455,7 @@ int pstore_register(struct pstore_info *psi)
455 add_timer(&pstore_timer); 455 add_timer(&pstore_timer);
456 } 456 }
457 457
458 pr_info("pstore: Registered %s as persistent store backend\n", 458 pr_info("Registered %s as persistent store backend\n", psi->name);
459 psi->name);
460 459
461 return 0; 460 return 0;
462} 461}
@@ -502,8 +501,8 @@ void pstore_get_records(int quiet)
502 size = unzipped_len; 501 size = unzipped_len;
503 compressed = false; 502 compressed = false;
504 } else { 503 } else {
505 pr_err("pstore: decompression failed;" 504 pr_err("decompression failed;returned %d\n",
506 "returned %d\n", unzipped_len); 505 unzipped_len);
507 compressed = true; 506 compressed = true;
508 } 507 }
509 } 508 }
@@ -524,8 +523,8 @@ out:
524 mutex_unlock(&psi->read_mutex); 523 mutex_unlock(&psi->read_mutex);
525 524
526 if (failed) 525 if (failed)
527 printk(KERN_WARNING "pstore: failed to load %d record(s) from '%s'\n", 526 pr_warn("failed to load %d record(s) from '%s'\n",
528 failed, psi->name); 527 failed, psi->name);
529} 528}
530 529
531static void pstore_dowork(struct work_struct *work) 530static void pstore_dowork(struct work_struct *work)