Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2421807pxb; Sat, 19 Feb 2022 10:50:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPlPIHgPe57ZNGmZp/V9MOUmpDW5i7pEoFFJP12mRUJAw1K1cJnxteZ8b8OqXAl+2wY+v2 X-Received: by 2002:a05:6402:42c6:b0:412:8cbc:8f3d with SMTP id i6-20020a05640242c600b004128cbc8f3dmr14056564edc.310.1645296640597; Sat, 19 Feb 2022 10:50:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645296640; cv=none; d=google.com; s=arc-20160816; b=TKBH4cltua65tsqydElJgTCYOffGUqfROLk3z5eHTRuYZZyziK3G3abzU7EsDN3+2e FviqrvIgS7IiLEksAKVxTfvtqaQk9BxtFo9vc3nbz/VvazfKZdrp77Ubnd0yIT3kaG6S muh0oq+wAcAEWwqIhdGE1AXkifeIPm+CxFTc7jWKFVjMgoMEbakDqftiPfGYPadXJy0u coZ6XpkpqgV+PRrhVB6sr5p+q4VSco2gVt8VHqOAjkVF49DqiZaKvrczXm/9Nw30B9n0 hkkvh0YzzWCh72ef8AALAtmpIRcZzq/TJASNUspIakzZv8O+8qlXP4EIYPnckx2ZDOJB 9vNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sKk7PU00hMVu9aGFp4QR8fM4yJ792sbFruvYCTj9+X4=; b=d1t1vxhAEM0WrdgKD8TSMqzzoh1n1/yy+AfCupEb3krX1LtdZww+M7BMDZStZr2G87 GoFjQTy529QwR7aC4ry+bCkgE0uDqLVqjibzaCHVp+8TrIKQwkHmdQgIWNNMddQrVl7W tH/CftGM0GDkr76rEOtyGUpWSo45N0ve7lsSLe5sIwAQaWqwyXZDiuTPHMM1P/7M8grZ ppd4rJyMJX/4bqQHTzNv3g6I0bhNI/Itmfdp8P1AW9H2SyrrBsAt/eWm8rsnp3XZPKzB jWYEP0zrge03rSA8DWm80xS2gJR2C/UNLA1QOeoqXg9coOAFfjM2dJtuzDzswHRn0U3W vJHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga31si6259197ejc.811.2022.02.19.10.50.16; Sat, 19 Feb 2022 10:50:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241819AbiBSJ0u (ORCPT + 99 others); Sat, 19 Feb 2022 04:26:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241786AbiBSJ0l (ORCPT ); Sat, 19 Feb 2022 04:26:41 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4AE24CCDB for ; Sat, 19 Feb 2022 01:26:23 -0800 (PST) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4K134y69cJz8wdK; Sat, 19 Feb 2022 17:22:58 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Sat, 19 Feb 2022 17:26:20 +0800 From: Miaohe Lin To: CC: , , , Subject: [PATCH 5/9] mm/z3fold: remove confusing local variable l reassignment Date: Sat, 19 Feb 2022 17:25:29 +0800 Message-ID: <20220219092533.12596-6-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220219092533.12596-1-linmiaohe@huawei.com> References: <20220219092533.12596-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Miaohe Lin --- mm/z3fold.c | 1 - 1 file changed, 1 deletion(-) 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 @@ static inline struct z3fold_header *__z3fold_alloc(struct z3fold_pool *pool, /* 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)) { -- 2.23.0