From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 037156B0003 for ; Tue, 6 Mar 2018 17:48:02 -0500 (EST) Received: by mail-wr0-f199.google.com with SMTP id 65so141519wrn.7 for ; Tue, 06 Mar 2018 14:48:01 -0800 (PST) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id p1si11179666wra.331.2018.03.06.14.48.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 14:48:00 -0800 (PST) Date: Tue, 6 Mar 2018 14:47:57 -0800 From: Andrew Morton Subject: Re: [PATCH v12 02/11] mm, swap: Add infrastructure for saving page metadata on swap Message-Id: <20180306144757.8b1b4967bce500fca9bb6083@linux-foundation.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Khalid Aziz Cc: davem@davemloft.net, dave.hansen@linux.intel.com, arnd@arndb.de, kirill.shutemov@linux.intel.com, mhocko@suse.com, ross.zwisler@linux.intel.com, dave.jiang@intel.com, mgorman@techsingularity.net, willy@infradead.org, hughd@google.com, minchan@kernel.org, hannes@cmpxchg.org, shli@fb.com, mingo@kernel.org, jglisse@redhat.com, me@tobin.cc, anthony.yznaga@oracle.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, sparclinux@vger.kernel.org, Khalid Aziz On Wed, 21 Feb 2018 10:15:44 -0700 Khalid Aziz wrote: > If a processor supports special metadata for a page, for example ADI > version tags on SPARC M7, this metadata must be saved when the page is > swapped out. The same metadata must be restored when the page is swapped > back in. This patch adds two new architecture specific functions - > arch_do_swap_page() to be called when a page is swapped in, and > arch_unmap_one() to be called when a page is being unmapped for swap > out. These architecture hooks allow page metadata to be saved if the > architecture supports it. > > Signed-off-by: Khalid Aziz > Cc: Khalid Aziz > Acked-by: Jerome Marchand > Reviewed-by: Anthony Yznaga Acked-by: Andrew Morton -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org