Received: by 10.223.185.116 with SMTP id b49csp2945566wrg; Mon, 5 Mar 2018 11:13:26 -0800 (PST) X-Google-Smtp-Source: AG47ELuLgPaHE8rEzIjuUThsOG4gcMibpj4bTRu6R/Nz9ehnncCKP2vunvWH9VCOltwYOR4XMLOL X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr13872254plb.170.1520277206552; Mon, 05 Mar 2018 11:13:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520277206; cv=none; d=google.com; s=arc-20160816; b=gtOi2jfddFFskjM5EnfBS+21wkb/vobNjjwgvUJiHRPy+VnacWlc2IgRV3BQ9JKMZR qTvmFt3AiOS/sQ/YC2ATgibxJx/E1/bJ2WxLeicd6LtVn1DIji21d+hvQH9ex/mL5Wsh vzKzWMnUcqThldvLSGU1YcGxNHK9UYOOUMDfXZxFhZ4lcw0epLdswwOMQd84HHVzXg7v hUUJ5TCGx8zjPti7E7BtmH4zor7g23ckd1k9CWDuWp2H+7vP/dcWTWqyJncFJVljtSxk XoAYYkDQEvI5zmVwrdob0F7r+r1F7e4dolQrG6qa/8Hol9622Sfamc3WxMyxyRcxkxPB wn8w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=08191pZFRwp6ZJ8dGOJshhPvP4hKe4qAocSCY4A/ryQ=; b=nat8LAVMm2pMyxdBd39ampXhGKliJVgpVuMvsSdfvJu2OPEYSLrto4d0pDpfc3DQcp wVc3FQa2oSacvaH4U56qUyAF/zCNw/E9q2x7GoqYs0y03fwOckRKdHqvkf79ICLqGfhT Vl9ykUhGxYKBjAcSgD9rBxA6AEiwUmuT0KX5cjuUmbBU6IpVA5NletRkZqQoDD7Z+L/x 5BG/IUZm72S4J5mksNKrJez5tbLa4fdOZFnB7wrMMxd0H78CwYHm/4y2U4xaYalVXuQr NP/1GrCuFOujC4PrKGzAjVhRc31v5uaAxQBYh1quIiW4M3OjUp8Hr4VgBm9bBnJ6p3Gb TCrA== 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 j63si8592780pgc.484.2018.03.05.11.13.11; Mon, 05 Mar 2018 11:13:26 -0800 (PST) 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 S1752950AbeCETMR (ORCPT + 99 others); Mon, 5 Mar 2018 14:12:17 -0500 Received: from mga04.intel.com ([192.55.52.120]:55002 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbeCETMQ (ORCPT ); Mon, 5 Mar 2018 14:12:16 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2018 11:12:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,428,1515484800"; d="scan'208";a="32576437" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga003.jf.intel.com with ESMTP; 05 Mar 2018 11:12:15 -0800 Subject: Re: [RFC, PATCH 13/22] mm, rmap: Free encrypted pages once mapcount drops to zero To: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky References: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> <20180305162610.37510-14-kirill.shutemov@linux.intel.com> Cc: Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Dave Hansen Message-ID: Date: Mon, 5 Mar 2018 11:12:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180305162610.37510-14-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > extern void prep_encrypt_page(struct page *page, gfp_t gfp, unsigned int order); > +extern void free_encrypt_page(struct page *page, int keyid, unsigned int order); The grammar here is weird, I think. Why not free_encrypted_page()?