Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp532030ybe; Wed, 4 Sep 2019 03:51:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9AAfvg5aouaAi+6ScMJrA46NXDZ2HPQYVSOCR57I+1GHh+sVtmtAr64FNhwkRFuGKGCSU X-Received: by 2002:a17:902:36a:: with SMTP id 97mr2252523pld.75.1567594293088; Wed, 04 Sep 2019 03:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567594293; cv=none; d=google.com; s=arc-20160816; b=kZalWfH+c/lpMTrG6mIU/yscnZAaU9/oKGry79nUTMMfvUMRF9g4d/fcN4QpzdJnom 7ZRB10gW3e65h/PNt2MgN4gE3MU/nMmvV1ga19A6B3d8fS/ftd6wyo03FLvMTHALmQAK qGFL6pD0Dm+ZDfosfnxcQ3wfG/S4expLz0GUE0xnI6HKWMgKEsAQzHXuTNahL/+j/iMN /SSjhhpIJvHkX70ZPVZIKJ57Wz2WhYQMWvwyoBsr48rB7F5bmlLhqTdx47TBY+U4g3DM UzqIqQBlkOBIl3JnOBLmZExsw9NVhRqqOMK9JUG6bNs9KPTkkc7w+0XRd3AWeVQeQuMf uXTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MP/Ddwx2H57lHXI8hI3UOtaNzy0Sj2Wk0zQyjASbdA8=; b=Pvn4IrzTfxJsjuRQFdvyagTnFRsZIpKhouuXkPNX+5rl4JVP6XybPA9Tfd6SJOUk0m B+OaYqa9+El1nTrj/ICxwxTrLJheWk1TEoMayOpHRPlKhM9QZkUkIOO/u3Rk6XudKtAa WLShx6cbOz1A+Hvxd9B/SmJXJNOTEkl5Ixuwe3t+ubLYPDIIOyw+h0lZ0L/tFzxR5iAw oWnr9WLhVsRrSw4a6U6RI4gC/7Tq646XlVWvH2/nK8e+skPyJVfdcL4ITDJwQJHVEZ5Y x6IB6j8/rgVTvwtWwOo5cuiwvE2X9YYI2zC4p0Yih6bSatDXwSk9PgD+qtHi3+BglPMq eomg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=0VpSv91P; 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 i188si19938150pfe.96.2019.09.04.03.51.16; Wed, 04 Sep 2019 03:51:33 -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; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=0VpSv91P; 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 S1729741AbfIDKsq (ORCPT + 99 others); Wed, 4 Sep 2019 06:48:46 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39109 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbfIDKsq (ORCPT ); Wed, 4 Sep 2019 06:48:46 -0400 Received: by mail-qt1-f194.google.com with SMTP id n7so23806344qtb.6 for ; Wed, 04 Sep 2019 03:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MP/Ddwx2H57lHXI8hI3UOtaNzy0Sj2Wk0zQyjASbdA8=; b=0VpSv91PzgwLYgwJ8y79l7OWEl6fe2CyF1UNm5H3MXAY2/OZ1lsCTClL+sl3y7uHox Y488BneV4nanJ5b4fppLKH5CptMky1kot1u75wBkIKlm0S0ndGR10iQO8Coedx9HoY04 52aY9YXX5xL3i+/eYth+dHcahW0LJm55lFFYncUeFJu66TE/Nv4s2MafbVrpI+OAkLGH 7PCnkHxzEDwm4Njl4KGgEOy6fopSy9LqvFgaLWiM4QR2qv6Rhqh2qAGen0zx32aPxrYn MbJpu9xZR8ufbhKDbqG9VtlhIkyOMRaXcu+pO+cb+iIEORjyKPofb7T0BJMPj5Qv49tN qaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=MP/Ddwx2H57lHXI8hI3UOtaNzy0Sj2Wk0zQyjASbdA8=; b=iwiax4rfl86KIXr0ol521dAyoCbNRVdPLdqHAMGMlX59+pZmsVbqrQh5d3QdoEp/KC +DNXwhAMgdrmPEUhTZt1HfEI8rfCbK3eHjWYupxoJMu1hLaDtaLt35XczvB8c06Wi/48 p9g03PyVyJc5bKTyLXg5a6r5eamjjUMeO8pE7XJEeC3d7bC1ZoNfpfev5zi6DTdiq5Bu vmhbSlnjilXMtdO6niWo/0Tl8nzaDwljPT4o9ZBpJUDvzZ85P5TbW6YzHu+KDeICifYB rtgfVcCxUXoCJBLxui+8nxzbIdQkc5e3KF4r99ODf1hrY3OD44au/CtY4IlmCNeBJ+6b RwFw== X-Gm-Message-State: APjAAAVRHeit04u079WmkJtd2JKrVv38vs3UORv290SseiXWwg5JO2CQ +BWm/fW0uFwDiHbKOhQ0U7O8y95uULHMEA== X-Received: by 2002:ac8:2d8b:: with SMTP id p11mr28963753qta.220.1567594125444; Wed, 04 Sep 2019 03:48:45 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::48d2]) by smtp.gmail.com with ESMTPSA id e7sm4095977qto.43.2019.09.04.03.48.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 03:48:44 -0700 (PDT) Date: Wed, 4 Sep 2019 06:48:42 -0400 From: Josef Bacik To: "Hongzhi, Song" Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, josef@toxicpanda.com Subject: Re: Bug?: unlink cause btrfs error but other fs don't Message-ID: <20190904104841.nrdocb7smfporu7m@macbook-pro-91.dhcp.thefacebook.com> References: <49edadc4-9191-da89-3e3b-ca495f582a4d@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49edadc4-9191-da89-3e3b-ca495f582a4d@windriver.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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