Received: by 10.213.65.68 with SMTP id h4csp613431imn; Tue, 13 Mar 2018 15:02:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELu7iNDwIcn5Z9hl7V1n2OW38104kSTzR5Xpf9Adu3SDgkGyfE69jV3jUbXU7l7qh+TT8mrp X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr1953616ple.0.1520978551052; Tue, 13 Mar 2018 15:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520978551; cv=none; d=google.com; s=arc-20160816; b=ANpYmnOIgbq0s9OnNrt9x3Ann9+GDdNSpa1jFYFdlG0fUN0rVE9TxYPNdyWYMEWzy6 es+jqlkle1b5FzGfd+1ys7PH4cHQC+TTBxGQzQZUCMItGsG9D3jnPv+wGYQtrjpNz4FG DauTvmCkKb3oQOapeJ6NCDzG3BFE5em6S7Y8YInk3zwV9hYOCTIa1vYDAqbnttOLy52h n0DMz5UD0ahPLUbdJNgjxMBiFjpKk7sN+MFP7p1DnnOVjGOlbgEo/HSnOU3bpHsr9DRh hrMvomeg065RuT4I9wkent0lMqF7WSV/pgOUcLV1Nt6sq3wnNQf4oq7LfGtulGAksVY8 HKLA== 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=GhvFeZrqEdgv0ONoZG35l+di61oDUMPfpQXNgbwPbeI=; b=QUZ6cSgSDU5gQdykFpCI/g1+8sdcdpfq+h22hpX5NhlHoKdPS1H3MvqrdmOWf/aK6P rGvCQGdGKAUaltQuOGHyUFVLCon8xhMPHxNeeuAsZCJ5s8bNSGoqJSc/bvVTp/fh71Y4 sOKHkkORlC0LRDkAoKbIh00FYUHgjr4p3brOodPUYopPAnKMdK0VrylBNd6RlqnU1qw5 7/tFJjo8qobcJmBE4Z0MmCJax57lgzlOYGONjp/xR7y1N/wyeuN/0d8boZZ7FsEFMVB+ Sxgaf4lCcOiLB7z5aheAgQ9QFwmkfSN/eBI85eUG0x4nw3qiEo1Pc2fXlXxUuhLIu5bP 1ODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=P216EFkh; 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 z7si827208pfg.278.2018.03.13.15.02.14; Tue, 13 Mar 2018 15:02:31 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=P216EFkh; 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 S1753187AbeCMWAs (ORCPT + 99 others); Tue, 13 Mar 2018 18:00:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60092 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753142AbeCMWAq (ORCPT ); Tue, 13 Mar 2018 18:00:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GhvFeZrqEdgv0ONoZG35l+di61oDUMPfpQXNgbwPbeI=; b=P216EFkh5ORAIDmHOiQy0vKO6 2oVo9uSCohodyZxrC0LLL+HGJGy3mGZ2bXIkvf44yIXS+JqeXWO5P+1IIy+jNLpwcTerVdR0tC8Va EIfLQnnVo5A45OFY8YmWNCt3FgxjUIK0H4EiUprQFoZ8CUEk5+kW4MQciu5RgBeBg/nMBg76OEw3C W+P1GxCcBGw+4aJC9kaAviyXTs7O8VOzDud/xBLBDJRukzzyCHOB+G8IUV3zin2QZVRJJY7EaGiiv p+TBdtmDMCyLjRk4T5orxsRSOl0OeCLviKhZ5G6WoBU4/T1ldg9HqTuM00ZvLuPPPuCRvz24IXJOO 7HZRQAV+w==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1evryK-0006H2-WF; Tue, 13 Mar 2018 22:00:41 +0000 Date: Tue, 13 Mar 2018 15:00:40 -0700 From: Matthew Wilcox To: Igor Stoppa Cc: david@fromorbit.com, rppt@linux.vnet.ibm.com, keescook@chromium.org, mhocko@kernel.org, labbott@redhat.com, linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 4/8] struct page: add field for vm_struct Message-ID: <20180313220040.GA15791@bombadil.infradead.org> References: <20180313214554.28521-1-igor.stoppa@huawei.com> <20180313214554.28521-5-igor.stoppa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313214554.28521-5-igor.stoppa@huawei.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 11:45:50PM +0200, Igor Stoppa wrote: > When a page is used for virtual memory, it is often necessary to obtain > a handler to the corresponding vm_struct, which refers to the virtually > continuous area generated when invoking vmalloc. > > The struct page has a "mapping" field, which can be re-used, to store a > pointer to the parent area. > > This will avoid more expensive searches, later on. > > Signed-off-by: Igor Stoppa Reviewed-by: Matthew Wilcox Regardless of the fate of the rest of this patchset, this makes sense and we should have this.