diff options
author | Yu Zhao <yuzhao@google.com> | 2021-04-29 23:01:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-04-30 11:20:42 -0700 |
commit | f73c6c8805ed0762d99122d5332fcf42b0c8fbb8 (patch) | |
tree | 90bb99dd9c45afc8d7a13ace7c6ed0d78c15ee4c /mm/mm_init.c | |
parent | cef4c7d29d776643e86b600e5ea823f047445d0b (diff) | |
download | lwn-f73c6c8805ed0762d99122d5332fcf42b0c8fbb8.tar.gz lwn-f73c6c8805ed0762d99122d5332fcf42b0c8fbb8.zip |
include/linux/page-flags-layout.h: correctly determine LAST_CPUPID_WIDTH
The naming convention used in include/linux/page-flags-layout.h:
*_SHIFT: the number of bits trying to allocate
*_WIDTH: the number of bits successfully allocated
So when it comes to LAST_CPUPID_WIDTH, we need to check whether all
previous *_WIDTH and LAST_CPUPID_SHIFT can fit into page flags. This
means we need to use NODES_WIDTH, not NODES_SHIFT.
Link: https://lkml.kernel.org/r/20210303071609.797782-1-yuzhao@google.com
Signed-off-by: Yu Zhao <yuzhao@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions