Received: by 10.223.164.202 with SMTP id h10csp772600wrb; Tue, 7 Nov 2017 14:25:32 -0800 (PST) X-Google-Smtp-Source: ABhQp+TSvL7LTmt8C+ACONq4HKp0TWCAbtOUOqf8uxiXQ585rQOMfWdxhRiUSHkxycbEsCb/9KcM X-Received: by 10.99.53.14 with SMTP id c14mr227408pga.440.1510093532812; Tue, 07 Nov 2017 14:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510093532; cv=none; d=google.com; s=arc-20160816; b=CXJVEgkdh9UKU9YbnGGIfgFK82tcwYgWhV61tAg3j5prdxRL+oaj9G/pju4BxLPI/r F2U6j+bfeUN81XIXjACwU3nt+NYuL8DED2ix+uu+MBrhZsOmVURahkfNrAX3iDlBrQKR 0/cnzpJ2jhsQYytGa68wlLXD+O72GnKxqMobrHz3W4Cv8lPr4A5AD5y/fOc8C64vSHUF 3eBnkmXAoSGxdkrrNrKBJs4VKjPnQ6/pCeTFkBMNdlzCSl+XyvRt1iFnylD0xbhKGCFV DxBSDU2K1BIeVwciA06LDfVKk2qnVE1znIS+Y95pIm6J2UVdjyZLp7t9ZRPfUtCmC12D rr/g== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=fKbQZWOV/VnC21At/OiKKOD+nMCUetw7tKh7cR4t3eA=; b=InJT5VFUbsewX4MgbpAfIjUJCqARkfTPnKeC+sYmMkEwII/hn1caqQ1QfDskIklhKz WcUOMWpwc690e3qsJ44tNqqMeG8250b+6o4zPyjBCLoRklLBqLQAQVwQBf6JkDTq1XAb 9ruXfKe2GQigw7IW9GL/CTl4Mme3Ir105g5w+lMDiSA/FX4rC+EB2k95Nt7b3e3a7H0Y F8wF9drWySAosoYx1Sx5d+ofUd3u9jELs6LkUwAHXJGNTj/lDWQFDJGntVvUnDiwSUFD crYr+c5Bs5t+XWDIV2HX17SmhWh/NElLJgISBK6NSdsfimuJGAxmLUpKg0xYm7zo2w60 GWvg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k63si2338262pfh.368.2017.11.07.14.25.20; Tue, 07 Nov 2017 14:25:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757617AbdKGM2Q (ORCPT + 91 others); Tue, 7 Nov 2017 07:28:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42388 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752545AbdKGM2O (ORCPT ); Tue, 7 Nov 2017 07:28:14 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DC51EC058ED8; Tue, 7 Nov 2017 12:28:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com DC51EC058ED8 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com Received: from localhost (ovpn-112-38.ams2.redhat.com [10.36.112.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CE615D6A9; Tue, 7 Nov 2017 12:28:11 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: aarcange@redhat.com, hughd@google.com, nyc@holomorphy.com, mike.kravetz@oracle.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v3 3/9] hugetlb: expose hugetlbfs_inode_info in header Date: Tue, 7 Nov 2017 13:27:54 +0100 Message-Id: <20171107122800.25517-4-marcandre.lureau@redhat.com> In-Reply-To: <20171107122800.25517-1-marcandre.lureau@redhat.com> References: <20171107122800.25517-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 07 Nov 2017 12:28:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hugetlbfs inode information will need to be accessed by code in mm/shmem.c for file sealing operations. Move inode information definition from .c file to header for needed access. Signed-off-by: Marc-André Lureau Reviewed-by: Mike Kravetz --- fs/hugetlbfs/inode.c | 10 ---------- include/linux/hugetlb.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index ed113ea17aff..f57aab929e41 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -55,16 +55,6 @@ struct hugetlbfs_config { umode_t mode; }; -struct hugetlbfs_inode_info { - struct shared_policy policy; - struct inode vfs_inode; -}; - -static inline struct hugetlbfs_inode_info *HUGETLBFS_I(struct inode *inode) -{ - return container_of(inode, struct hugetlbfs_inode_info, vfs_inode); -} - int sysctl_hugetlb_shm_group; enum { diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index fbf5b31d47ee..590a77433a14 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -279,6 +279,16 @@ static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) return sb->s_fs_info; } +struct hugetlbfs_inode_info { + struct shared_policy policy; + struct inode vfs_inode; +}; + +static inline struct hugetlbfs_inode_info *HUGETLBFS_I(struct inode *inode) +{ + return container_of(inode, struct hugetlbfs_inode_info, vfs_inode); +} + extern const struct file_operations hugetlbfs_file_operations; extern const struct vm_operations_struct hugetlb_vm_ops; struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct, -- 2.15.0.125.g8f49766d64 From 1583356573080883148@xxx Mon Nov 06 22:14:57 +0000 2017 X-GM-THRID: 1583082219976454426 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread