Skip to content

Commit d38ac97

Browse files
weiyang-linuxtorvalds
authored andcommitted
mm/page_alloc.c: replace the definition of NR_MIGRATETYPE_BITS with PB_migratetype_bits
We already have the definition of PB_migratetype_bits and current NR_MIGRATETYPE_BITS looks like a cyclic definition. Just use PB_migratetype_bits is enough. Signed-off-by: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Mel Gorman <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8391953 commit d38ac97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/mmzone.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ static inline bool is_migrate_movable(int mt)
8888

8989
extern int page_group_by_mobility_disabled;
9090

91-
#define NR_MIGRATETYPE_BITS (PB_migrate_end - PB_migrate + 1)
92-
#define MIGRATETYPE_MASK ((1UL << NR_MIGRATETYPE_BITS) - 1)
91+
#define MIGRATETYPE_MASK ((1UL << PB_migratetype_bits) - 1)
9392

9493
#define get_pageblock_migratetype(page) \
9594
get_pfnblock_flags_mask(page, page_to_pfn(page), \

0 commit comments

Comments
 (0)