mbox series

[v2,0/5] A few cleanup patches for hugetlb_cgroup

Message ID 20220729080106.12752-1-linmiaohe@huawei.com (mailing list archive)
Headers show
Series A few cleanup patches for hugetlb_cgroup | expand

Message

Miaohe Lin July 29, 2022, 8:01 a.m. UTC
Hi everyone,
This series contains a few cleaup patches to remove unneeded check,
use helper macro, remove unneeded return value and so on. More details
can be found in the respective changelogs.
Thanks!
---
v2:
 drop patch 2/6 per Mina
 collect Reviewed-by tag per Mina and Mike. Thanks for review!
---
Miaohe Lin (5):
  hugetlb_cgroup: remove unneeded nr_pages > 0 check
  hugetlb_cgroup: hugetlbfs: use helper macro SZ_1{K,M,G}
  hugetlb_cgroup: remove unneeded return value
  hugetlb_cgroup: use helper macro NUMA_NO_NODE
  hugetlb_cgroup: use helper for_each_hstate and hstate_index

 include/linux/hugetlb_cgroup.h | 19 ++++++++-----------
 mm/hugetlb_cgroup.c            | 27 ++++++++++++---------------
 2 files changed, 20 insertions(+), 26 deletions(-)