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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7E0CCA9EA0 for ; Mon, 21 Oct 2019 01:07:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA018222D0 for ; Mon, 21 Oct 2019 01:07:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbfJUBHa (ORCPT ); Sun, 20 Oct 2019 21:07:30 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:37487 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726597AbfJUBHa (ORCPT ); Sun, 20 Oct 2019 21:07:30 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x9L17Nw6030501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Oct 2019 21:07:23 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 1D2DE420458; Sun, 20 Oct 2019 21:07:23 -0400 (EDT) Date: Sun, 20 Oct 2019 21:07:23 -0400 From: "Theodore Y. Ts'o" To: Jan Kara Cc: linux-ext4@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 04/22] ext4: Fix credit estimate for final inode freeing Message-ID: <20191021010723.GB6799@mit.edu> References: <20191003215523.7313-1-jack@suse.cz> <20191003220613.10791-4-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191003220613.10791-4-jack@suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Oct 04, 2019 at 12:05:50AM +0200, Jan Kara wrote: > Estimate for the number of credits needed for final freeing of inode in > ext4_evict_inode() was to small. We may modify 4 blocks (inode & sb for > orphan deletion, bitmap & group descriptor for inode freeing) and not > just 3. The modification for the inode should already be included in the calculation for ext4_blocks_for_truncate(), no? So we only need 3 extra blocks (sb, inode bitmap, and bg descriptor for the inode). - Ted