Received: by 10.223.164.221 with SMTP id h29csp160182wrb; Tue, 31 Oct 2017 11:42:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Qnd8atmh9abXM6j3GD8L1z6UsyJDK7GrPolrIBy4LjX25hUf9/ZxeYlQLI5xM8lCI/Boq8 X-Received: by 10.101.72.132 with SMTP id n4mr2677347pgs.245.1509475352148; Tue, 31 Oct 2017 11:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509475352; cv=none; d=google.com; s=arc-20160816; b=TWjh2l/PfxUVzDSplw5CGauF8074Fay+AJkrbg77Y4pSP8ZoqNuK5AQsH4PI4xiTbw /8tzprUm8BIKL0KHWusLeZz0QywP/hEfEoJur1lzCgZhvRz9WiDPRs6bRWGTCWtfjGi3 UFyugY1SjmqQvPmN5NZsent6K6bbJnr1vaZL3V8xPIY4U5ewfasnaFFzA/SkHm7Rd/ui ODXiFh4AaC+mYH7l22iYyXBr4r6haSpHBq+rAFtY6np16iUMyjNBQEmTfZSzg0dcyhFq FH0D7q2lQzV0l03JM+8gRsT4Yky5sC+w4gbKRj6ilAwN+MisUP6XQToSL/TT3fNoyMlw IUoA== 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=QJV+8TTYSwp5HsLITBHv5Ra2Tulj9imgrrzU6QGEo7Y=; b=r/j6qQCmZ/0frUEaGH3GeuZ/pCGVssLpRbJ1kHM0hAnyVfgvQdydINXh7t4vmc4mXx G0QnLS2Kcq8Jc/Mhhlv9F7XxrkE2GRVKU5N6dktESmDZYGG8rtbz6aNYS7cCU6GWykpV VM8HkBaDIbpFDpmUQXb8aRuUo1f57gWZ22hkbJnBZNTI+p7Qjxn6q1qp/Uj3J0JOKiif jpaQIEP3FxgMWIyfDQCrCT1mfHCmfHgwcLdiK0VWPNuORIOvDDiFQou6io26cDZERRKV m1s8SXq1GQMkjEHvv0HLqpVmSOYNw0mBMq/ue7Mya8MfezRCnjTz3bd74bDv/qeIOszF EvXA== 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 202si2123005pgg.496.2017.10.31.11.42.16; Tue, 31 Oct 2017 11:42:32 -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; 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 S932850AbdJaSlN (ORCPT + 99 others); Tue, 31 Oct 2017 14:41:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59630 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932625AbdJaSlH (ORCPT ); Tue, 31 Oct 2017 14:41:07 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5A786806D3; Tue, 31 Oct 2017 18:41:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5A786806D3 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=marcandre.lureau@redhat.com Received: from localhost (ovpn-112-19.ams2.redhat.com [10.36.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id C36B3620A1; Tue, 31 Oct 2017 18:41:06 +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 3/6] hugetlb: expose hugetlbfs_inode_info in header Date: Tue, 31 Oct 2017 19:40:49 +0100 Message-Id: <20171031184052.25253-4-marcandre.lureau@redhat.com> In-Reply-To: <20171031184052.25253-1-marcandre.lureau@redhat.com> References: <20171031184052.25253-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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 31 Oct 2017 18:41:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patch is going to access hugetlbfs_inode_info field from mm/shmem.c. Signed-off-by: Marc-André Lureau --- 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 59073e9f01a4..ea7b10357ac4 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 8bbbd37ab105..f78daf54897d 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -278,6 +278,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 1584116605874711930@xxx Wed Nov 15 07:35:21 +0000 2017 X-GM-THRID: 1584116605874711930 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread