From patchwork Fri May 18 22:24:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 8819 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 92E3523EB5 for ; Fri, 18 May 2012 22:25:58 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5F9D2A186F6 for ; Fri, 18 May 2012 22:25:58 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so4104355yen.11 for ; Fri, 18 May 2012 15:25:58 -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:date:from :to:cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:x-gm-message-state; bh=t9ikf7cu5l3/9zC+7G3RxIV9/HwFFhRM30hAhk3SKng=; b=PoQZjljrPHzYMXAMm6vg+jhO0WtxwU/MdQSrdVaYuey0LhXepBzPKfvVn7G2AU1E4k zG8mDQVjR67+/E4p+pERe1yeWVfI3ytyDlTvHul6W0VACf7GYycl84Mu8rBmYnJ2cYcj YO0eJD6hS+ryh9GsxN4pw57cTh7aNk8tW4BRNiBzZdrGqdV+mZ//7kthq7ccg3ySCAOA 3GN7vX5yquOvtWkI/vaQjH38W3dPyTm8bWcPkgXT21nK66rTAt2hgugKu6hDQ00Rg17o ibYVzd6C61/dtxy4B6KTlXbBN0S0K3C2edo1Ijr0AQWcqlIoK1obsBNA1JJKde+UA75s Hkzg== Received: by 10.50.154.169 with SMTP id vp9mr1949495igb.53.1337379957897; Fri, 18 May 2012 15:25:57 -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.35.72 with SMTP id o8csp135238ibd; Fri, 18 May 2012 15:25:57 -0700 (PDT) Received: by 10.68.220.97 with SMTP id pv1mr42836398pbc.158.1337379957129; Fri, 18 May 2012 15:25:57 -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 pb1si5038571pbc.246.2012.05.18.15.25.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 15:25:57 -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 rr4so5393342pbb.37 for ; Fri, 18 May 2012 15:25:56 -0700 (PDT) Received: by 10.68.212.229 with SMTP id nn5mr2076959pbc.29.1337379956821; Fri, 18 May 2012 15:25:56 -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 iw4sm14139818pbc.7.2012.05.18.15.25.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 15:25:56 -0700 (PDT) Date: Fri, 18 May 2012 15:24:27 -0700 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 03/14] pstore/ram_core: Do not reset restored zone's position and size Message-ID: <20120518222426.GC23089@lizard> References: <20120518222314.GA9425@lizard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120518222314.GA9425@lizard> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQm+RZqXALeL1U7EujCGfE9JsQLrOoQ6GHaEWDlPRfNKFIdhyjbheNtjDCi2bHmJGftmmZ47 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 849a542..dff5127 100644 --- a/fs/pstore/ram_core.c +++ b/fs/pstore/ram_core.c @@ -422,6 +422,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"