Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2232238imm; Sat, 28 Jul 2018 12:04:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdN2Y5xuT7TVXtVkW4v2yk9vt3qhQsY929c5O3OEAr4wZikns3Mg1Kuvny00ZZggYhTNA6W X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr10276067pga.181.1532804685332; Sat, 28 Jul 2018 12:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532804685; cv=none; d=google.com; s=arc-20160816; b=dK0fPFSnqokv5y2P5l7nEUnEDN849qeNS3P13BNaCryhhxa8PGTq+DK5fq+Xhfvdfx SJKCjO0sxwoB9humFXoZESxY0kLMbvtcQFs5uLp2j/Yq0wOaJbYlupQbmNX39s+FbsWA SKzJL+P253le1xn24KTeemV+mpfwsLsPL77fp67kaXUaGQePjRMqvIMGGQRUa4q81AhI ZCX8K5ZXmF/iDfT2IrwQ27BeOoV3LpLo+7JyD7WxHWuNN2dog21Oth20DTgNnqO5IMyo r/0JdH68QEYFMTulM1yia0GTHzGNkCf9DE22n9DJOcuUGlXYPFUg0rYcgjbMwEVsJJC+ LCVw== 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=OM3CyD0vtta3QT9PDo4cNlUxUZgQPgcVyHibzqPewlA=; b=pjHzUtjxKDaYWbclNyJarHzfNsA4T4cmFCXtZsG8KdH6FMofAqRRFtIQvb5hpdrlCc L/tq3FJEHaI1nQQw06KnIVTiSd/2lXzLqbrNDrZpD00muukkPBI3vOoCqxlBr4zXIJPQ nf4vEmNszpPR9+oPgB/jkAzC/ywzQPS7FYS5LLeeK7VGBllRYd2t/TBeGEkTDqSoRBBz c0Ke/3z5rUsH6fd/nLO7vZmWe+yutt71lsllMw1VOc/gOMc/6CwT7ErsQFbeKDjGa3Tr pZ4MdxG1XG/tsmv2A6Cc9UvaBJdg134OW91lkLqyUdFozxBvb3PtmeIhtCNwPxE9G7sc jH0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rGmRvZQV; 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 b12-v6si6785682pla.201.2018.07.28.12.04.18; Sat, 28 Jul 2018 12:04:45 -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=rGmRvZQV; 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 S1730393AbeG1UaZ (ORCPT + 99 others); Sat, 28 Jul 2018 16:30:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38758 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730158AbeG1UaZ (ORCPT ); Sat, 28 Jul 2018 16:30:25 -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=OM3CyD0vtta3QT9PDo4cNlUxUZgQPgcVyHibzqPewlA=; b=rGmRvZQVu6Mb+re3SfaF6OumX reMwkZ0I6lD2aklF9nIYXz6mhMgdHxLFeS7Zxji5u0kJnF/fIwVWoCrFp9iLE22pE24y9J0Hoh/jp xUw19anJn8hadMMcJ837xu3yz4h9zK2tcZ1XAizxLP7MoketeRVB++8ohdoImHq07v5bt43WkWG3r KgVXbcv+9IpGiqOYPW5Xxmko9e5b1BU7o+ASJJQ6Tg99vLcZ2IAsTmQ7mKHBwudl2tfj5wGSG4wRg ydqw8vGhZXrKdMBShXN0PIfxUcR7voOBPZNOWy4pZAan86ZjsEFPc0v675+ADFaW2Zi3fqLMgL2Ho VrnZcUunQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjUUK-0000LI-Sx; Sat, 28 Jul 2018 19:02:48 +0000 Date: Sat, 28 Jul 2018 12:02:48 -0700 From: Matthew Wilcox To: Jane Chu Cc: akpm@linux-foundation.org, dan.j.williams@intel.com, mhocko@suse.com, jack@suse.cz, jglisse@redhat.com, mike.kravetz@oracle.com, dave@stgolabs.net, linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipc/shm.c add ->pagesize function to shm_vm_ops Message-ID: <20180728190248.GA883@bombadil.infradead.org> References: <20180727211727.5020-1-jane.chu@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727211727.5020-1-jane.chu@oracle.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 Fri, Jul 27, 2018 at 03:17:27PM -0600, Jane Chu wrote: > +++ b/include/linux/mm.h > @@ -387,6 +387,13 @@ enum page_entry_size { > * These are the virtual MM functions - opening of an area, closing and > * unmapping it (needed to keep files on disk up-to-date etc), pointer > * to the functions called when a no-page or a wp-page exception occurs. > + * > + * Note, when a new function is introduced to vm_operations_struct and > + * added to hugetlb_vm_ops, please consider adding the function to > + * shm_vm_ops. This is because under System V memory model, though > + * mappings created via shmget/shmat with "huge page" specified are > + * backed by hugetlbfs files, their original vm_ops are overwritten with > + * shm_vm_ops. > */ > struct vm_operations_struct { I don't think this header file is the right place for this comment. I'd think a better place for it would be at the definition of hugetlb_vm_ops.