mm: introduce compound_nr()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 23 Sep 2019 22:34:30 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2019 22:54:08 +0000 (15:54 -0700)
commitd8c6546b1aea843fbeb4d54a1202f1adda6504be
tree4b0fcc4a1afc9342472d59293b50fce20f2d70e7
parent94ad9338109fe9d0b8a4a16828719dd6dcaee4c2
mm: introduce compound_nr()

Replace 1 << compound_order(page) with compound_nr(page).  Minor
improvements in readability.

Link: http://lkml.kernel.org/r/20190721104612.19120-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 files changed:
arch/arm/mm/flush.c
arch/powerpc/mm/hugetlbpage.c
fs/proc/task_mmu.c
include/linux/mm.h
mm/compaction.c
mm/filemap.c
mm/gup.c
mm/hugetlb_cgroup.c
mm/kasan/common.c
mm/memcontrol.c
mm/memory_hotplug.c
mm/migrate.c
mm/page_alloc.c
mm/rmap.c
mm/shmem.c
mm/swap_state.c
mm/util.c
mm/vmscan.c