Received: by 10.223.164.202 with SMTP id h10csp288823wrb; Mon, 6 Nov 2017 06:41:35 -0800 (PST) X-Google-Smtp-Source: ABhQp+Qnmp7jvENp6nAfftiFeRRvbGCw+w8CPSc0f5tCkJwUPJG/ns3MYgv3/5YETFGs/t26KM3k X-Received: by 10.99.183.67 with SMTP id w3mr15425829pgt.329.1509979295618; Mon, 06 Nov 2017 06:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509979295; cv=none; d=google.com; s=arc-20160816; b=u2qGJ+36zrCtUaRnWT4HPbZHPmvToMXvsnBba+VDuzTzkzgUslDKDVmqrWO8pEQbY3 MlKV5t1BsR5Ju1zb7qRz0Pr2h/zlO9NP1Uzu4oDeBwDlCXAaEIyddGhV5kQSkOsWjHqv uuE1KLWxNAsJ0deKAo0W6oZiZ/viYqZkrqUIOfU3wfe19PV7wPaxp60TFWGQL0ZGQJh7 TXTNoJSNH/y8F6LkQymK2Ie1Ar3MIMGOZFsku3SDNlFpbeKI2jpHhqM7AvsB2258AkiX axKGQ+MtQingcjXw2IB1Oy8VZX+k/wO3N93L3129DbPgYwHQeAl3hoYu9QVOov+IoaoV 6OJQ== 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=6EUpOuUEDZG8HTggPMamoHjr0Bjf6n6kcq4+CeiEAl8=; b=yfuPArSI4xnIHAFBdIqIb/DI0yp0E2TGi4aHUza59JC7sn+dxXGh8ZWaUBbxk9vQZg 166B1DIEczLxWiv2WYXfWGKY0u0e8G+YDICdmpWosRm2jH6iDuJEnVPW0mKyBmXp6vam zZHGCnwFxTEcNqGWr6OURgyQmobJWS4cAscOkuWD6wYF3OwtrBlsuYYESYbkDoys2eFn dHXqqq16cP54D26zqarNVtQmQnySvXugOnMbvBl40ij8zhF8yw14SW3zOAsEK6A6Lmdv 8u7yVoy6xDlyoI79MdlQs4RBqQ5ozeb8v+YDT200iYuLSEq6n1lsfOzn1QE9SXOndfh8 Jupw== 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 g1si10823729pln.619.2017.11.06.06.41.21; Mon, 06 Nov 2017 06:41:35 -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 S1753634AbdKFOkJ (ORCPT + 97 others); Mon, 6 Nov 2017 09:40:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37778 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbdKFOkC (ORCPT ); Mon, 6 Nov 2017 09:40:02 -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 88D6E7EA90; Mon, 6 Nov 2017 14:40:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 88D6E7EA90 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com Received: from localhost (ovpn-112-67.ams2.redhat.com [10.36.112.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id D3B035D6A3; Mon, 6 Nov 2017 14:40:00 +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 v2 3/9] hugetlb: expose hugetlbfs_inode_info in header Date: Mon, 6 Nov 2017 15:39:38 +0100 Message-Id: <20171106143944.13821-4-marcandre.lureau@redhat.com> In-Reply-To: <20171106143944.13821-1-marcandre.lureau@redhat.com> References: <20171106143944.13821-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.28]); Mon, 06 Nov 2017 14:40:02 +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.rc0.40.gaefcc5f6f From 1583454958921348182@xxx Wed Nov 08 00:18:45 +0000 2017 X-GM-THRID: 1583454958921348182 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread