The patch titled Subject: hugetlb_cgroup: remove unused hugetlb_cgroup_from_counter macro has been added to the -mm tree. Its filename is hugetlb_cgroup-remove-unused-hugetlb_cgroup_from_counter-macro.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/hugetlb_cgroup-remove-unused-hugetlb_cgroup_from_counter-macro.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/hugetlb_cgroup-remove-unused-hugetlb_cgroup_from_counter-macro.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Subject: hugetlb_cgroup: remove unused hugetlb_cgroup_from_counter macro Patch series "Some cleanups and improvements for hugetlb". This patchset does some cleanups and improvements for hugetlb and hugetlb_cgroup. This patch (of 4): Since commit 726b7bbe ("hugetlb_cgroup: fix illegal access to memory"), the hugetlb_cgroup_from_counter() macro is not used any more, remove it. Link: https://lkml.kernel.org/r/cover.1634797639.git.baolin.wang@xxxxxxxxxxxxxxxxx Link: https://lkml.kernel.org/r/f03b29b801fa9942466ab15334ec09988e124ae6.1634797639.git.baolin.wang@xxxxxxxxxxxxxxxxx Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb_cgroup.c | 3 --- 1 file changed, 3 deletions(-) --- a/mm/hugetlb_cgroup.c~hugetlb_cgroup-remove-unused-hugetlb_cgroup_from_counter-macro +++ a/mm/hugetlb_cgroup.c @@ -27,9 +27,6 @@ #define MEMFILE_IDX(val) (((val) >> 16) & 0xffff) #define MEMFILE_ATTR(val) ((val) & 0xffff) -#define hugetlb_cgroup_from_counter(counter, idx) \ - container_of(counter, struct hugetlb_cgroup, hugepage[idx]) - static struct hugetlb_cgroup *root_h_cgroup __read_mostly; static inline struct page_counter * _ Patches currently in -mm which might be from baolin.wang@xxxxxxxxxxxxxxxxx are hugetlb-support-node-specified-when-using-cma-for-gigantic-hugepages.patch hugetlb_cgroup-remove-unused-hugetlb_cgroup_from_counter-macro.patch hugetlb-replace-the-obsolete-hugetlb_instantiation_mutex-in-the-comments.patch hugetlb-remove-redundant-validation-in-has_same_uncharge_info.patch hugetlb-remove-redundant-vm_bug_on-in-add_reservation_in_range.patch mm-migrate-simplify-the-file-backed-pages-validation-when-migrating-its-mapping.patch