diff options
author | Baoquan He <bhe@redhat.com> | 2023-07-22 03:14:37 +0200 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2023-08-25 17:04:59 +0200 |
commit | 7ee1e758bebe13d96217bcfd5230892ed44760e7 (patch) | |
tree | 6b7afec57953b733b6888135beba6d49a57406bd /net/ipv6 | |
parent | mm/percpu.c: remove redundant check (diff) | |
download | linux-7ee1e758bebe13d96217bcfd5230892ed44760e7.tar.xz linux-7ee1e758bebe13d96217bcfd5230892ed44760e7.zip |
mm/percpu.c: optimize the code in pcpu_setup_first_chunk() a little bit
This removes the need of local varibale 'chunk', and optimize the code
calling pcpu_alloc_first_chunk() to initialize reserved chunk and
dynamic chunk to make it simpler.
Signed-off-by: Baoquan He <bhe@redhat.com>
[Dennis: reworded first chunk init comment]
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions