The patch titled Subject: hugetlb: expose hugetlbfs_inode_info in header has been added to the -mm tree. Its filename is hugetlb-expose-hugetlbfs_inode_info-in-header.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/hugetlb-expose-hugetlbfs_inode_info-in-header.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/hugetlb-expose-hugetlbfs_inode_info-in-header.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> Subject: hugetlb: expose hugetlbfs_inode_info in header 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. Link: http://lkml.kernel.org/r/20171107122800.25517-4-marcandre.lureau@xxxxxxxxxx Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: David Herrmann <dh.herrmann@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/hugetlbfs/inode.c | 10 ---------- include/linux/hugetlb.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff -puN fs/hugetlbfs/inode.c~hugetlb-expose-hugetlbfs_inode_info-in-header fs/hugetlbfs/inode.c --- a/fs/hugetlbfs/inode.c~hugetlb-expose-hugetlbfs_inode_info-in-header +++ a/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 -puN include/linux/hugetlb.h~hugetlb-expose-hugetlbfs_inode_info-in-header include/linux/hugetlb.h --- a/include/linux/hugetlb.h~hugetlb-expose-hugetlbfs_inode_info-in-header +++ a/include/linux/hugetlb.h @@ -270,6 +270,16 @@ static inline struct hugetlbfs_sb_info * 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, _ Patches currently in -mm which might be from marcandre.lureau@xxxxxxxxxx are shmem-unexport-shmem_add_seals-shmem_get_seals.patch shmem-rename-functions-that-are-memfd-related.patch hugetlb-expose-hugetlbfs_inode_info-in-header.patch hugetlb-implement-memfd-sealing.patch shmem-add-sealing-support-to-hugetlb-backed-memfd.patch memfd-test-test-hugetlbfs-sealing.patch memfd-test-add-memfd-hugetlb-prefix-when-testing-hugetlbfs.patch memfd-test-move-common-code-to-a-shared-unit.patch memfd-test-run-fuse-test-on-hugetlb-backend-memory.patch mm-page_owner-align-with-pageblock_nr_pages.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html