From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5D10C7EE23 for ; Mon, 5 Jun 2023 07:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbjFEHKo (ORCPT ); Mon, 5 Jun 2023 03:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231546AbjFEHKM (ORCPT ); Mon, 5 Jun 2023 03:10:12 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0236610C for ; Mon, 5 Jun 2023 00:09:50 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 77DCE68AA6; Mon, 5 Jun 2023 09:09:05 +0200 (CEST) Date: Mon, 5 Jun 2023 09:09:05 +0200 From: Christoph Hellwig To: Dan Carpenter Cc: oe-kbuild@lists.linux.dev, Christoph Hellwig , lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-btrfs@vger.kernel.org, David Sterba , Qu Wenruo , Johannes Thumshirn Subject: Re: [linux-next:master 6080/6849] fs/btrfs/volumes.c:6412 btrfs_map_block() error: we previously assumed 'mirror_num_ret' could be null (see line 6250) Message-ID: <20230605070905.GC15651@lst.de> References: <14e5f928-5395-4cc4-90ff-8223ef857320@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14e5f928-5395-4cc4-90ff-8223ef857320@kadam.mountain> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Fri, Jun 02, 2023 at 05:04:37PM +0300, Dan Carpenter wrote: > Hi Christoph, > > This is just a rename function so the warning is older but I didn't > send this email before. Yeah. The old version is my fault as well :) It is not a bug as all callers that set smap pass in the mirror_num_ret as well, but it definitively isn't very maintainable code. I see what I can do.