Received: by 10.223.185.116 with SMTP id b49csp3537517wrg; Tue, 6 Mar 2018 00:19:41 -0800 (PST) X-Google-Smtp-Source: AG47ELs+zB8u13GVxqybAUzcIBCc95Yq+7Cj93SybS8CBHX8OolC0dlBJgpxwHkIIYh0j/SSwCPY X-Received: by 2002:a17:902:74c3:: with SMTP id f3-v6mr16056444plt.444.1520324380874; Tue, 06 Mar 2018 00:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520324380; cv=none; d=google.com; s=arc-20160816; b=c3C8R72fBEO2+cwpy0sidK86rwY0CgrjymwBJD38q13KGbxCo0hh8jeyxlPsX5pkYj EVqdYxZVpiyC7VdB4/jHq1v/pgSKYZjl3AiF29niywzgUvo9sPPKsb5DIncOftTHczV4 VTSlkKi29aemez81aDdIxIqgL5+2UoXbg7/CgIMqNidVCTS6vSmN2z8mEp6tS8WdJG4n 7lVr7l3fJh5bnqiAoMWDmanFH0X+Vo4RFRtuKCdQS73Wzez0sVp3m/JF3bZK7I+46n2c Toe7/ZdgPlQzNOHHjgE721NevTG1tc4fdhMQ5PiZfLaE7j9i9KmI5ELMClvMQx8x7QYp hdcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7lRK07r2GdUu95nU07DwRRg28M0BNm6rqfP9vKXYmEI=; b=TF32e3rQjJWzpzaxkVjBHYhqCWX3C5NJGYCILX3McuS+igmGU6Q+qV9ogpOpRHsNyl g4SOaCnp1ZMnA7sc8f9ygyZZpXh2fr0dB2joiqJuZlNZzkaUWX/Ig22r/mXPu0ETo1it 2oJMbNRw9WeM5mzv3dnakjFrWsB/tTTGSfiyLHrtSjek5EjkJGNRIuO66i1MUt4hcepH MNiuh11pKrh2lDW+WjvIc4HLvbhneKlyLRFDSUBfgrFNOMhPruxxtdqQXX8RD4KUI5bW z7Mwx49pd27BVW1sHEJoWUe2pe7m4XXpcMjRrtEkTPY/mNiYz67oOhdtb6l/i0h5M8Mg K4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=gUojsN12; 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 v189si9464909pgd.414.2018.03.06.00.19.26; Tue, 06 Mar 2018 00:19:40 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=gUojsN12; 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 S1753170AbeCFISZ (ORCPT + 99 others); Tue, 6 Mar 2018 03:18:25 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38681 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbeCFISX (ORCPT ); Tue, 6 Mar 2018 03:18:23 -0500 Received: by mail-wm0-f68.google.com with SMTP id z9so20361426wmb.3 for ; Tue, 06 Mar 2018 00:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7lRK07r2GdUu95nU07DwRRg28M0BNm6rqfP9vKXYmEI=; b=gUojsN12g4xJrkJMdu5JPEmyh+sgdHzEkCPtXAiZBfdTw5VT2wkYbNc4Jcu5fjNypY oto3UJfXGCr0k6fl1NdftxmgAA3x0GnFRjqrngl2Fbw8x9JpnHNeWsJw3Zv74pmEtQCs tq47IrKViSfkFzTvyS4yLPV2iWl4RetK++Hc0nDXkCEgh8dR4F7rA/2gC+W+Dxd+OxLi mTLWSrciZ23uSlwKHc7cEMJm6Ei1tufglx9Mmr7a/gBYFXSXqqicsCksQ2WQG6apKMVP tGUm6J4lMI31Lfa5h/JUOdl7HCBTAq6KaK3LxkFD99T0Dmmnj/d+ilvQ5VO3Hay5xssh ivdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7lRK07r2GdUu95nU07DwRRg28M0BNm6rqfP9vKXYmEI=; b=n654woYmsHfcMpfFucZj6+R9F8/9dbLcAKKX702URgetS+Rm0v1JGn5LNJBotBIO5f kHDF/bWVg0Bp6SdKwsdkJ4SP3qV9fkOVqhNdkqhm3d3zL5GBw/9/1os2Sx02wOboK/aA OFsIf+3QSPXiKuU0bAz9Gf7JYkU90uWV5ZQIYbe7XPbgIgVAWnCFs48S4xP4S+c6RpV2 VBH50vq0pBJlb8vAVe4FLkoscDy0godEesYYU10f54GYb6iCxGmWSeFEe9feBQTRSJqS UDdSl2Vdvnme4RQ3bqTf8t6zPW7zKGYKWktgSRW5UkWxpCFJ/ShMYAOFl5Am4cpEOUVD 4pNA== X-Gm-Message-State: APf1xPBzKe4PeOQImqc/EiQzBeJVVq9fHTmfaSlHQSgbMBIwXRmNLkYk lC2hhj3ucxdiiwwcuZ9m0MxfWw== X-Received: by 10.80.182.174 with SMTP id d43mr22102616ede.102.1520324302783; Tue, 06 Mar 2018 00:18:22 -0800 (PST) Received: from node.shutemov.name ([86.57.210.234]) by smtp.gmail.com with ESMTPSA id c22sm15109725eda.1.2018.03.06.00.18.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 00:18:21 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 62223648D520; Tue, 6 Mar 2018 11:18:07 +0300 (+03) Date: Tue, 6 Mar 2018 11:18:07 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky , Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC, PATCH 13/22] mm, rmap: Free encrypted pages once mapcount drops to zero Message-ID: <20180306081807.f3ohd7fg6jpohg4h@node.shutemov.name> References: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> <20180305162610.37510-14-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 11:12:15AM -0800, Dave Hansen wrote: > 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()? Okay, I'll fix this. -- Kirill A. Shutemov