From patchwork Sat May 26 13:07:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 8988 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 82CDB23E37 for ; Sat, 26 May 2012 13:10:29 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 46E7AA18848 for ; Sat, 26 May 2012 13:10:29 +0000 (UTC) Received: by obbun3 with SMTP id un3so3461685obb.11 for ; Sat, 26 May 2012 06:10:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=FuKcds7wGJhhE2l/ek7trp6w8XgI0ICRvEOaXA7GV34=; b=Aihrh1Y5/meujVHN0T1XlZkIiIoUJO0dVLGs4CgzWqrcEbKoGf90dGniKci7yQ6YfZ TL5HJZv4kqs1/0OiR5FId9G31pOHnATZQuKOyjt5shUDywN2nSaVc9qSRfu/QZ3rZnvk OCX0W3Q1dovanSBQmvPHTA/ldhJqeQiyPCgQ4pfklAASWIGqXIn9A8mP/ShtVtq6aUP9 exRYdvrSge4HFwgZq0ARb4QzvNfHMYktRtaPQheQ+QvJkLbQ9yh4o2e2FjDkKULlHyOt r0ODpIZrol35kZsWHqBEgMPor2WsviwQPx7JpDx0GRtP/vZT9UzafsztGpLnDMl6P8F4 z1aA== Received: by 10.50.195.234 with SMTP id ih10mr985768igc.0.1338037828489; Sat, 26 May 2012 06:10:28 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp85858ibb; Sat, 26 May 2012 06:10:27 -0700 (PDT) Received: by 10.68.197.99 with SMTP id it3mr7410359pbc.148.1338037823375; Sat, 26 May 2012 06:10:23 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id hs4si9890161pbc.266.2012.05.26.06.10.23 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 May 2012 06:10:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) smtp.mail=anton.vorontsov@linaro.org Received: by mail-pb0-f50.google.com with SMTP id rr4so3284264pbb.37 for ; Sat, 26 May 2012 06:10:23 -0700 (PDT) Received: by 10.68.226.228 with SMTP id rv4mr7501094pbc.167.1338037821918; Sat, 26 May 2012 06:10:21 -0700 (PDT) Received: from localhost (c-71-204-165-222.hsd1.ca.comcast.net. [71.204.165.222]) by mx.google.com with ESMTPS id b10sm12508979pbr.46.2012.05.26.06.10.19 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 May 2012 06:10:21 -0700 (PDT) From: Anton Vorontsov To: Greg Kroah-Hartman , Kees Cook , Colin Cross , Tony Luck Cc: Arnd Bergmann , John Stultz , Shuah Khan , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Stephen Boyd , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Subject: [PATCH 2/5] pstore/ram_core: Do not reset restored zone's position and size Date: Sat, 26 May 2012 06:07:50 -0700 Message-Id: <1338037673-19909-2-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <20120526130650.GA6242@lizard> References: <20120526130650.GA6242@lizard> X-Gm-Message-State: ALoCoQlreZsl75myTqShGx6HeKToqC4xqWe0IHDYusmSyHu5HabSAm1JvI/8j2Vk3toAfD3tA815 Otherwise, the files will survive just one reboot, and on a subsequent boot they will disappear. Signed-off-by: Anton Vorontsov --- fs/pstore/ram_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c index 235513c..f6650d1 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 " 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"