Skip to content

Commit

Permalink
pstore/ram_core: Do not reset restored zone's position and size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Vorontsov authored and Greg Kroah-Hartman committed Jun 13, 2012
1 parent 201e4ac commit 25b63da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/pstore/ram_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ static int __init persistent_ram_post_init(struct persistent_ram_zone *prz, bool
" size %zu, start %zu\n",
buffer_size(prz), buffer_start(prz));
persistent_ram_save_old(prz);
return 0;
}
} else {
pr_info("persistent_ram: no valid data in buffer"
Expand Down

0 comments on commit 25b63da

Please sign in to comment.