Message ID | 485fb4c5b11a2fa22426656d09ca2ab6c96504bd.1679326434.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-btrfs-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47EC9C6FD1D for <linux-btrfs@archiver.kernel.org>; Tue, 21 Mar 2023 11:14:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230389AbjCULOx (ORCPT <rfc822;linux-btrfs@archiver.kernel.org>); Tue, 21 Mar 2023 07:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbjCULOt (ORCPT <rfc822;linux-btrfs@vger.kernel.org>); Tue, 21 Mar 2023 07:14:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A1224C80 for <linux-btrfs@vger.kernel.org>; Tue, 21 Mar 2023 04:14:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D37FDB815C2 for <linux-btrfs@vger.kernel.org>; Tue, 21 Mar 2023 11:14:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C51EC4339C for <linux-btrfs@vger.kernel.org>; Tue, 21 Mar 2023 11:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679397262; bh=sxN2OgHqV+jAvsHFbRd7CbGMbD//bNO1W6W+F0zQ6No=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ni/M23cQ5m+gx/Q2BH3pcXu/76rxnJUto1AwE+iOc7F9m6Tw7LaqEEjuuHEh3yDGD DTxJi0ZwOWgzj+9I6ajPUilbGUD1UPCGkdwrykMvLLWGWaiCzlsyGznwR/T8tllyNH ikwq04MSf7nBVJYI2Yra2Kyug5YwOEkO+3yxcVHKYohu9eJdZfe89KS+LAq4uqh88E SpLzF+Wq+ZMEyPCOMy3stkREkU2vJZdM5OYONiKxK3wk404HstioV2Hzhk/g/K/FwV wkIiRspETUdHLlRcGEV3v6eBIxWZQlx7StMuELKzj9oHyU6uDKAy+/y72M5DevlcE2 /x+3n2ZJ/Zxig== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH 20/24] btrfs: calculate correct amount of space for delayed reference when evicting Date: Tue, 21 Mar 2023 11:13:56 +0000 Message-Id: <485fb4c5b11a2fa22426656d09ca2ab6c96504bd.1679326434.git.fdmanana@suse.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1679326426.git.fdmanana@suse.com> References: <cover.1679326426.git.fdmanana@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-btrfs.vger.kernel.org> X-Mailing-List: linux-btrfs@vger.kernel.org |
Series |
btrfs: cleanups and small fixes mostly around block reserves
|
expand
|
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 912d5f4aafbc..2e181a0a6f37 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5230,7 +5230,7 @@ static struct btrfs_trans_handle *evict_refill_and_join(struct btrfs_root *root, { struct btrfs_fs_info *fs_info = root->fs_info; struct btrfs_trans_handle *trans; - u64 delayed_refs_extra = btrfs_calc_insert_metadata_size(fs_info, 1); + u64 delayed_refs_extra = btrfs_calc_delayed_ref_bytes(fs_info, 1); int ret; /*