diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-29 08:16:05 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-04-29 08:16:05 +0200 |
commit | a3148b5fea52d86b8d1c2445b09ca1033f29fdf0 (patch) | |
tree | dc082738aaee77f15a8083c2b156baf0aac01be6 /mm/z3fold.c | |
parent | mm/z3fold: remove unneeded page_mapcount_reset and ClearPagePrivate (diff) | |
download | linux-a3148b5fea52d86b8d1c2445b09ca1033f29fdf0.tar.xz linux-a3148b5fea52d86b8d1c2445b09ca1033f29fdf0.zip |
mm/z3fold: remove confusing local variable l reassignment
The local variable l holds the address of unbuddied[i] which won't change
after we take the pool lock. Remove it to avoid confusion.
Link: https://lkml.kernel.org/r/20220308134311.59086-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/z3fold.c')
-rw-r--r-- | mm/z3fold.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/z3fold.c b/mm/z3fold.c index 2f848ea45b4d..adc0b3fa4906 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -876,7 +876,6 @@ lookup: /* Re-check under lock. */ spin_lock(&pool->lock); - l = &unbuddied[i]; if (unlikely(zhdr != list_first_entry(READ_ONCE(l), struct z3fold_header, buddy)) || !z3fold_page_trylock(zhdr)) { |