Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1908912pxu; Tue, 24 Nov 2020 11:48:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi/nfFc+AfBNoQzCif9Jc6NAlJmuR1/VPTtMZZRI/oEpGnV3OIacOrxqcMugTKNYHEpYO0 X-Received: by 2002:a50:a40c:: with SMTP id u12mr67415edb.337.1606247321451; Tue, 24 Nov 2020 11:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606247321; cv=none; d=google.com; s=arc-20160816; b=reZx/8kifVeXNzzFwOtIffuJV7nDELpO6He6sFHTbwJZRNRw7/VgHUTlee3bdato+/ erOEO59GfpxD3iFDPgxAYfUdi5NkX32AmunrYk+3p4dFEPgqSu+P+yvfIXvfL2o+CqDG KH/FfSNkJJPJxrRjl917sYNLdtaLPiHbBmKMZTM66Zd/iv/oTki0wNHpUIIO3jtE74AQ yYQlgH0hjO8mIr4WGLSWBsE5l/tW7hJ7s/Ui1MRWu1zb0QF0bFVhhXy6qVbkgaKNrybH 1ioPGLQ5VVu+HphD8+rHW9RCvggvANy+qLeqMl4mcf2nLI8MLf2+hSVed75To6Jj8MFM yG9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:message-id:date:subject:cc:from; bh=jKbRsczGRJhnDScBPOiF9MReFVqCuEYLoGrGshD2x1M=; b=UPTGkE1nOOXE6Hye7gQTUY/m4+sd6XJXE3AAGKaZC2rFVP8Q6Ypul4Vdiq+flzGThk dDK69Gg/0IxJpu3XfSK2zDU0Zy54741R6YTwG8e8Vvsl1CapG85MziNY0HGE5Sg0ESxQ wlEpH6tyKfm3ubfgxcHK6KNvQjG+3UnufToJHiSXoekUfA8NiVp8dqwv5HAq7FHS37xH Wr4rsAuwcNhJEPMlANu8ix0/XL5155irPfklsKGugt5wlFlV7WvpS2hI7I6h7jWDQuEI kbaw+nmslOJl85kuRnPNcZ1C9rKz2bDwIv3Kovyrlj2rFpiWOO81kuCVrI7yP9mhzuD9 piNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si9667753edq.356.2020.11.24.11.48.18; Tue, 24 Nov 2020 11:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbgKXFEG (ORCPT + 99 others); Tue, 24 Nov 2020 00:04:06 -0500 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:49319 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgKXFEF (ORCPT ); Tue, 24 Nov 2020 00:04:05 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UGNsJ9m_1606194241; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UGNsJ9m_1606194241) by smtp.aliyun-inc.com(127.0.0.1); Tue, 24 Nov 2020 13:04:02 +0800 From: Alex Shi Cc: Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/btrfs: remove parent_level in btrfs_sb_log_location_bdev Date: Tue, 24 Nov 2020 13:03:55 +0800 Message-Id: <1606194235-53397-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable parent_level isn't used, so don't bother to get it. Signed-off-by: Alex Shi Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-btrfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- fs/btrfs/ctree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 32a57a70b98d..e5a0941c4bde 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -1578,13 +1578,10 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans, int end_slot; int i; int err = 0; - int parent_level; u32 blocksize; int progress_passed = 0; struct btrfs_disk_key disk_key; - parent_level = btrfs_header_level(parent); - WARN_ON(trans->transaction != fs_info->running_transaction); WARN_ON(trans->transid != fs_info->generation); -- 2.29.GIT