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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94F99C636D3 for ; Sun, 12 Feb 2023 16:01:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0EA688524F; Sun, 12 Feb 2023 17:01:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 20F17854EF; Sun, 12 Feb 2023 17:01:16 +0100 (CET) Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EFC5184DDE for ; Sun, 12 Feb 2023 17:01:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=whitebox@nefkom.net Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4PFBzF4xBHz1sBpp; Sun, 12 Feb 2023 17:01:13 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4PFBzF3fQRz1qqlS; Sun, 12 Feb 2023 17:01:13 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id C-oF_36Pmaem; Sun, 12 Feb 2023 17:01:12 +0100 (CET) X-Auth-Info: ONXS5SWF5mFOI/PPX38KJ492SQp77lf+rib+hX9vUmjlMKgOThZvBLg9wfrOXbMx Received: from igel.home (aftr-82-135-86-52.dynamic.mnet-online.de [82.135.86.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 12 Feb 2023 17:01:12 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 378352C17DA; Sun, 12 Feb 2023 17:01:12 +0100 (CET) From: Andreas Schwab To: Qu Wenruo Cc: u-boot@lists.denx.de, linux-btrfs@vger.kernel.org, Sam Winchenbach Subject: Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly References: <57ad584676de5b72ae422a22dc36922285405291.1672362424.git.wqu@suse.com> <87ttzqsxmr.fsf@igel.home> X-Yow: So this is what it feels like to be potato salad Date: Sun, 12 Feb 2023 17:01:12 +0100 In-Reply-To: <87ttzqsxmr.fsf@igel.home> (Andreas Schwab's message of "Sun, 12 Feb 2023 16:37:32 +0100") Message-ID: <87pmaeswjb.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean The length returned by btrfs_map_block is clearly bogus: read_extent_data: cur=615817216, orig_len=16384, cur_len=16384 read_extent_data: btrfs_map_block: cur_len=479944704; ret=0 read_extent_data: ret=0 read_extent_data: cur=615833600, orig_len=4096, cur_len=4096 read_extent_data: btrfs_map_block: cur_len=479928320; ret=0 -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."