Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp228500ybe; Wed, 4 Sep 2019 18:41:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv/qnygZLG45fjeE7vE/ZL4jfwRYaqF40lFvh+114+P5Ho5QE7uvvBbWVx7uMsyuA4NRqe X-Received: by 2002:a17:902:a615:: with SMTP id u21mr752268plq.4.1567647713128; Wed, 04 Sep 2019 18:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567647713; cv=none; d=google.com; s=arc-20160816; b=uTaGmdoz0qrRxIVHBfIouF0LyV/vO8X9GaOxdD9wZvlV3GxattAheS0YbWpKGOVjZu nP/qL8oDjpB68ahhRVb0A820yxoFixPe6Zli0aka6fZLWwdE67xD88dt7Dcjh58ZfeIl JDs9poFPB6hg9CriLGkjSAZz29d2IhPz8A/dxeRJ/Tiq0DNXiT40kpOY2P2E7jb02TiP ZO0+HBRv3UGgX5Seq64ip5SjhyQBnJs/d4oG3oVgnuQVXGYnix8SPdM+epFdXkWprhyY m6wESnOaHqpBS3srMVG3kZYzulyPE79SWaHMkVSH9weyiKlERHd9294auOzXSc5xz4j8 G6KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CJ/MyLOA6VG/f3SrwJNQC3Opj5sgiqb57U27qKMFhs8=; b=RSUN2Dh85ybNPj7eIFlSQk5EbfZfC01Wh1UFP2qXHn17k6fsc9dlNUgQnx2KKHQNsn 72D73L0Czd6445lwwPkptFRjLrfvax+1dFWbi+ZlACHj65hvpD2jpBhfwtUnsUDpEgq/ h876fA5uZcUeMlij6kZRpAONoIsel9txCQ3cwKPaNu0RrsMxYT25KF1V7XyBod5R4VlH ywRidFOJ++U52JvrCPcETN10zOmJEabUiYuuRYlIy9sU1FkNSXWUYoSWtVNvN/fRWUR+ 5Q+beP6WZYiUHXC+dhnbLqY7DLrTLuK13iIrzkHsq3xw/qWiO55CPc+2WOIdafP+xsgx EkOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 85si347492pgb.583.2019.09.04.18.41.37; Wed, 04 Sep 2019 18:41:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730631AbfIEBgp (ORCPT + 99 others); Wed, 4 Sep 2019 21:36:45 -0400 Received: from mail.windriver.com ([147.11.1.11]:35123 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727741AbfIEBgp (ORCPT ); Wed, 4 Sep 2019 21:36:45 -0400 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x851agER017249 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 4 Sep 2019 18:36:43 -0700 (PDT) Received: from [128.224.162.188] (128.224.162.188) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.468.0; Wed, 4 Sep 2019 18:36:35 -0700 Subject: Re: Bug?: unlink cause btrfs error but other fs don't To: Josef Bacik CC: , References: <49edadc4-9191-da89-3e3b-ca495f582a4d@windriver.com> <20190904104841.nrdocb7smfporu7m@macbook-pro-91.dhcp.thefacebook.com> From: "Hongzhi, Song" Message-ID: <853d3a5e-6e65-a7d8-df52-e293cad17600@windriver.com> Date: Thu, 5 Sep 2019 09:36:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190904104841.nrdocb7smfporu7m@macbook-pro-91.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [128.224.162.188] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/4/19 6:48 PM, Josef Bacik wrote: > On Wed, Sep 04, 2019 at 04:02:24PM +0800, Hongzhi, Song wrote: >> Hi , >> >> >> *Kernel:* >> >>     After v5.2-rc1, qemux86-64 >> >>     make -j40 ARCH=x86_64 CROSS_COMPILE=x86-64-gcc >>     use qemu to bootup kernel >> >> >> *Reproduce:* >> >>     There is a test case failed on btrfs but success on other fs(ext4,ext3), >> see attachment. >> >> >>     Download attachments: >> >>         gcc test.c -o myout -Wall -lpthread >> >>         copy myout and run.sh to your qemu same directory. >> >>         on qemu: >> >>             ./run.sh >> >> >>     I found the block device size with btrfs set 512M will cause the error. >>     256M and 1G all success. >> >> >> *Error info:* >> >>     "BTRFS warning (device loop0): could not allocate space for a delete; >> will truncate on mount" >> >> >> *Related patch:* >> >>     I use git bisect to find the following patch introduces the issue. >> >>     commit c8eaeac7b734347c3afba7008b7af62f37b9c140 >>     Author: Josef Bacik >>     Date:   Wed Apr 10 15:56:10 2019 -0400 >> >>         btrfs: reserve delalloc metadata differently >>         ... >> >> > I meant to reply to this but couldn't find the original thread. The patches I > wrote for this merge window were to address this issue. Thanks, > > Josef Ok, thank your, I will try to search them. --Hongzhi >