diff options
author | Wei Yang <[email protected]> | 2020-08-06 23:25:44 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-08-07 11:33:29 -0700 |
commit | 399b795b7a80bf703aae56fa0b66fd1949ca1fd9 (patch) | |
tree | f74f6ecb60872f96763ca59324c3f074ed0d0531 /lib/test_overflow.c | |
parent | d38ac97f8a7c4519ba141bbd7c2f7a8da8c9ff8d (diff) |
mm/page_alloc.c: extract the common part in pfn_to_bitidx()
The return value calculation is the same both for SPARSEMEM or not.
Just take it out.
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]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions