From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.orionsoft.ru (ip-210-182.nltel.ru [185.110.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78D7A1C84B8; Wed, 25 Feb 2026 12:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.110.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772023281; cv=none; b=B0VYf0peCqcC2+85O+E6Pum3tQYFV6T64qnhKJ0zysqC71T84adnxXG8tdO5jsTRdwUYvT8Ufl/CAkcxtSfJaDFpJr0TjBMEKOqUy276CQXQ+j+B/EQRsd7QGwELf0gFNkW6R90i1fwAyZBTlf/syj5EXMiV8zaegrbcsA00Edc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772023281; c=relaxed/simple; bh=0z/EYwHoGf9A3H2A7OVeoNMqvXRtfF0hjBFSpIJCqHM=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=g0IzCShBGRXUn8WACkfWsVD2m+Pe1Gniwq5erofWHs8uJ4VI3DeSI4Flhd0xvYO0b3zZvtwaT0eB1LtXFWCXU2qLeSUIZ3GH3xxM1yrh980V+eEpQKONaUEJ55ghdfGTMbtFoqsO588M1hqInyWvJVX5PkgH51o/cYgcHiTTL1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orionsoft.ru; spf=pass smtp.mailfrom=orionsoft.ru; dkim=pass (2048-bit key) header.d=orionsoft.ru header.i=@orionsoft.ru header.b=ymOXT4ZJ; arc=none smtp.client-ip=185.110.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=orionsoft.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=orionsoft.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=orionsoft.ru header.i=@orionsoft.ru header.b="ymOXT4ZJ" Received: by orionsoftpostfix.orionsoft.ru (Postfix, from userid 1001) id A6875A1A4A; Wed, 25 Feb 2026 15:40:21 +0300 (MSK) X-Spam-Level: X-Envelope-From: eburenchev@orionsoft.ru DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orionsoft.ru; s=dkim; t=1772023206; bh=0z/EYwHoGf9A3H2A7OVeoNMqvXRtfF0hjBFSpIJCqHM=; h=From:To:CC:Subject:Date:From; b=ymOXT4ZJ03hIinPc9GUXHsxed0Lybd10Saj9GPjcKbDCNgJYy5q+uQiqVDSEaJdTn MgONWWu75euiliU0aDn1LGfgLNmT3TEiGfpvzf9GCrt5vu3rzgrqldaJPlmHzm9/ml pCqQACC03PQaRByczGPibsZ8Dx3Q6PxdM+TlEvO2CSgJGZ2hiL48Yq+OJGEUuHXIkB /fDMIUH4hLQMMRynrGr3MNO2Zb+xW2Kpjceob45h6y/aHTAalcvLYuQpSWmCv68/Uo 7RM8nbaClZ7+pHZ5QJuhxnCvOfs4ivApI1jd57sjERIDg/X72Cch68OrLHeowEQV/q GajNPlhiwZDZg== X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru X-Envelope-From: eburenchev@orionsoft.ru From: Burenchev Evgenii To: "dsterba@suse.cz" CC: "clm@fb.com" , "dsterba@suse.com" , "linux-btrfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lvc-project@linuxtesting.org" , "mssola@mssola.com" , "fdmanana@kernel.org" Subject: [PATCH v2 1/2] btrfs: remove dead assignment to dirid in btrfs_search_path_in_tree() Thread-Topic: [PATCH v2 1/2] btrfs: remove dead assignment to dirid in btrfs_search_path_in_tree() Thread-Index: AQHcplLR3EW4Dza6/Uy8jPd/Xx7RJw== Date: Wed, 25 Feb 2026 12:41:02 +0000 Message-ID: <10496334e2624a818aa786a697833f67@orionsoft.ru> Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SEG-SpamProfiler-Score: -1 Related discussion: https://lore.kernel.org/linux-btrfs/20260224172835.GB26= 902@twin.jikos.cz After the introduction of btrfs_search_backwards(), the directory traversal state in btrfs_search_path_in_tree() is fully maintained via struct btrfs_key. The assignment: dirid =3D key.objectid; no longer affects control flow and is dead code. Remove the unused assignment to avoid confusion and silence static analysis warnings. No functional change. Found by Linux Verification Center (linuxtesting.org) with SVACE. Changes since v1: - split from original patch Signed-off-by: Evgenii Burenchev --- fs/btrfs/ioctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index ae2173235c4d..3a45ee1a7026 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1707,7 +1707,6 @@ static noinline int btrfs_search_path_in_tree(struct = btrfs_fs_info *info, btrfs_release_path(path); key.objectid =3D key.offset; key.offset =3D (u64)-1; - dirid =3D key.objectid; } memmove(name, ptr, total_len); name[total_len] =3D '\0'; --=20 2.43.0