Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2214717rwb; Thu, 8 Dec 2022 22:14:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7cH9xzirdl4B7RFhxQhZEpfT3TOd9pFdrRhNqH+JezSrutVq6Q0T5JgLqQzkeVfx0EkEjJ X-Received: by 2002:a17:90b:3c0d:b0:219:10dd:a389 with SMTP id pb13-20020a17090b3c0d00b0021910dda389mr1961090pjb.31.1670566460048; Thu, 08 Dec 2022 22:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670566460; cv=none; d=google.com; s=arc-20160816; b=GYc10cU94JvShrkG9RIT3iX9IzTDhUIpm8yyJ6CZo8oLYe+WrJsK1j5PDG6ehY2yFH FdlwTRyLHheL+Ymo+Er2nXr9vsYMVNctVmCYMsepDUpnljNSWpJiVWqwP+uOck6pnk2A sYcaJDEbNpOE6x9NLLksRDqwuJd4BiIKLcFIJ0VhrlDXdw3Gbl3me6p6s6EtggNV99g1 bDHUK56rdjQQ0hobjvimaOlB2yMxRp3FiWebNQhs87bMy8cbxBatZjlmhJqJ6lCmbY2b t501ZkPLQ/eg+0sZhmTOk+VZlEgawZ2fnHNAX8CeMrqSIVtA3lAglHbfHEnorQY9ML5b TlUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eB3l1ZPS+3z8Gov8819OEgKyJzNPoD2Z+tSNfsm5SEA=; b=gMcMmK606K7+pKmc1w+qlBpk2FBR5FXOoX22NME4LirbVlcUtw7fwter37PCXJjr4W IuFGW7HE1Hw7D6gbJ2/r6waTCRD82Su0aqXxeAnECXFzsrrEIht7njgTqIOzl7Kini+K 9A2yE8MBbgiAisWyY4C8edaRo02QeBKpYSIPIFHZF+rW9Wa1nhlJAEP1RlWBSwOFoNXh CuMwszykR+srcOXiy6kf5AMXPtlqOEVvd3udHl0x1jgincDZYmwd8uBN5HPTOMinRHmT XPYgGrF8fYLt8hcDHFK1CxmmxibB4nNJNKhmworByNVz+Q9yFV95tVLtyuKX7IAwnggQ cPZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=WazQQWWu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl5-20020a17090b384500b0021f249ab6acsi352770pjb.139.2022.12.08.22.14.07; Thu, 08 Dec 2022 22:14:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=WazQQWWu; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbiLIGFY (ORCPT + 99 others); Fri, 9 Dec 2022 01:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbiLIGFX (ORCPT ); Fri, 9 Dec 2022 01:05:23 -0500 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6591D4C251 for ; Thu, 8 Dec 2022 22:05:22 -0800 (PST) Received: from cwcc.thunk.org (pool-173-48-120-46.bstnma.fios.verizon.net [173.48.120.46]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 2B964uKq001168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Dec 2022 01:04:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1670565898; bh=eB3l1ZPS+3z8Gov8819OEgKyJzNPoD2Z+tSNfsm5SEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=WazQQWWuAwZXsPrJBbhxRuabsvOTxvfTPzzCsp5BWLyumSnMKMQkpMRgAA8CLFrHB MwJiArrx49RCnwh0dk+qR7Bc8FAr3SKL4ceVGGSB1diGV2n2F2nwvl3c0J5acRlb3B T4Xw9GCpgIfUONS6Ca9hs7334R4VxKF4WYE27ZcYOngvZpIJhrXvGhVFyMBprkegr9 sJlXHf1tZkJE4gbMsoM0OxEr65bDxljCxIQ23yTkiNVQtooC2tDFrsjiMgrUyMvfwd XAexs/Mr8y7UO5U4/RLDVPPic7a9q7OqbBYVC7TcS18Vwu15WsFJ0+kTQRMB6TNDwG /+563E+yqO98Q== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 63F8E15C3AE9; Fri, 9 Dec 2022 01:04:56 -0500 (EST) Date: Fri, 9 Dec 2022 01:04:56 -0500 From: "Theodore Ts'o" To: Ye Bin Cc: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, jack@suse.cz, Ye Bin , syzbot+05a0f0ccab4a25626e38@syzkaller.appspotmail.com Subject: Re: [PATCH v4 3/3] ext4: add check pending tree when evict inode Message-ID: References: <20221208033426.1832460-1-yebin@huaweicloud.com> <20221208033426.1832460-4-yebin@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221208033426.1832460-4-yebin@huaweicloud.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Dec 08, 2022 at 11:34:26AM +0800, Ye Bin wrote: > > Above issue fixed by > commit 1b8f787ef547 ("ext4: fix warning in 'ext4_da_release_space'") > in this scene. To make things better add check pending tree when evict > inode. > According to Eric Whitney's suggestion, bigalloc + inline is still in > development so we just add test for this situation, there isn't need to > add code to free pending tree entry. The i_pending_tree is an in-memory data structure, and so it's not appropriate to call ext4_error(), because there will be nothing for fsck to fix. If you really want to a bug to be noticed, you could use a ext4_msg plus a WARN_ON(); but an ext4_error() is really not appropriate. Cheers, - Ted