Received: by 10.213.65.68 with SMTP id h4csp3965936imn; Tue, 10 Apr 2018 07:18:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx48C1B6XCuDywz6MT+T6+C4IvIn/uW6uKWPXR6+G1MsUcUqzPzyx/nPE/wbVgxFCZxW7ZLfP X-Received: by 10.101.78.142 with SMTP id b14mr463327pgs.406.1523369894287; Tue, 10 Apr 2018 07:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523369894; cv=none; d=google.com; s=arc-20160816; b=iHoeqgSHkl7GTYLc8bohi11rEXy9C0wIboz9oc92WrpC0ptUpNAFbHBpO5JUp/WoPd mBCbuCuMBZwYWINoGvyVLicsI657hdQlsHP6KnfX66o5oBdcP+XWMsa3euuPyzzp0FCs TLUFDbXS2YOZ2/vPvb//+z5br2sFCFcJLIaqTW6G3/N5UTFAPzFrQFYsv9+i9CozK3TS eHuJ6/wdq+CHF/RmR/MdXCibURBt2C0Erq9yZoAlR2oQ/XCfcZeFQgrFdNjw4GM28Y0c FigrhDTcEG6KQIzlbG8DhQIX1ZAHM4prSvrye2E7J3ambbTKQxdB/FJM3D5hTHlNGjDK w7kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:subject:cc:to:from:date :arc-authentication-results; bh=NS+3zrRBpU+5jgIBDfx8Y26ZU67lTBaADoyl2izErpw=; b=gP2HF+H4GLsJB7uvsGut2h3XZv85/NXN0aNd0LHxi14irL9bage5LNqWR/TPQ7uS/U zxobYNTAfkGW2Uy5SLwbwXe7bJFitqLrc7Lscw5AXoU0B9aAM+AoXH6XMgAr8EOU3yMN duAkNcNp/J9WI1YwRlXmXMag/vDUJ/+dvhfAwv+Rudpmo+bwtUhClLejOGt8CvNkMWoj 6OQVz+CXTriyLBWPMYbSp6OPm/XkKFrbknrkw9uDStVnKmW0WWVMx+Ln/NuKlmLs3Ykb XSA+M4cRGea1FZiwNPjrKaiHix3pq1Kt5RzsECH5sFveqtwkABFLdBIs/1zKYMjaX1F+ ua0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si1914654pgr.63.2018.04.10.07.17.36; Tue, 10 Apr 2018 07:18:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753935AbeDJONu (ORCPT + 99 others); Tue, 10 Apr 2018 10:13:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:54623 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753171AbeDJONt (ORCPT ); Tue, 10 Apr 2018 10:13:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id ABAE5AE5B; Tue, 10 Apr 2018 14:13:46 +0000 (UTC) Date: Tue, 10 Apr 2018 16:13:45 +0200 From: Petr Tesarik To: Dave Young , Andrew Morton , Xunlei Pang , Baoquan He , Hari Bathini , "Kirill A. Shutemov" , "=?UTF-8?B?TWFyYy1BbmRyw6k=?= Lureau" Cc: linux-kernel@vger.kernel.org Subject: [PATCH] kexec: export PG_swapbacked to VMCOREINFO Message-ID: <20180410161345.142e142d@ezekiel.suse.cz> Organization: SUSE Linux, s.r.o. X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 6326fec1122cde256bd2a8c63f2606e08e44ce1d PG_swapcache is an alias for PG_owner_priv_1, which may be also used for other purposes. To know whether the bit indeed has the PG_swapcache meaning, it is necessary to check PG_swapbacked, hence this bit must be exported. Signed-off-by: Petr Tesarik --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index a93590cdd9e1..f7674d676889 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -454,6 +454,7 @@ static int __init crash_save_vmcoreinfo_init(void) VMCOREINFO_NUMBER(PG_lru); VMCOREINFO_NUMBER(PG_private); VMCOREINFO_NUMBER(PG_swapcache); + VMCOREINFO_NUMBER(PG_swapbacked); VMCOREINFO_NUMBER(PG_slab); #ifdef CONFIG_MEMORY_FAILURE VMCOREINFO_NUMBER(PG_hwpoison); -- 2.13.6