aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-05-26 09:07:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-13 19:52:39 -0400
commit25b63da64708212985c06c7f8b089d356efdd9cf (patch)
tree72fdcfee27559b22ef692de8ddf3246f3fbc5988 /fs/pstore
parent201e4aca5aa179e6c69a4dcd36a3562e56b8d670 (diff)
pstore/ram_core: Do not reset restored zone's position and size
Otherwise, the files will survive just one reboot, and on a subsequent boot they will disappear. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c
index 235513c46aaf..f6650d12c0c1 100644
--- a/fs/pstore/ram_core.c
+++ b/fs/pstore/ram_core.c
@@ -406,6 +406,7 @@ static int __init persistent_ram_post_init(struct persistent_ram_zone *prz, bool
406 " size %zu, start %zu\n", 406 " size %zu, start %zu\n",
407 buffer_size(prz), buffer_start(prz)); 407 buffer_size(prz), buffer_start(prz));
408 persistent_ram_save_old(prz); 408 persistent_ram_save_old(prz);
409 return 0;
409 } 410 }
410 } else { 411 } else {
411 pr_info("persistent_ram: no valid data in buffer" 412 pr_info("persistent_ram: no valid data in buffer"