From patchwork Tue Mar 21 11:37:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13182640 Return-Path: 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 0B057C6FD1D for ; Tue, 21 Mar 2023 11:37:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbjCULhK (ORCPT ); Tue, 21 Mar 2023 07:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjCULhJ (ORCPT ); Tue, 21 Mar 2023 07:37:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3EB9D504 for ; Tue, 21 Mar 2023 04:37:08 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 85F3B61ADE for ; Tue, 21 Mar 2023 11:37:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 713CFC433EF for ; Tue, 21 Mar 2023 11:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679398627; bh=3mmbkcxlRuBRdVjlaQrIuB1auM1pv0NotbSe/t3znes=; h=From:To:Subject:Date:From; b=tpaYbXKPZNsqxyDmfpIKEHG2SxSu7HDzVPZD2Ka/taW89pDhfpeDvyEKoNDTj4HRF rZgSbJoNBvPO2/ztKkv/iUJ5v3DrU1JWnUzHXm/ni/qhU4Ds8o5+9SgkTADpdKZ0yS DAzxmF41XFVRV+pGIQKauWB2WgrWsYn2jq3jOrNxDh8CIOtWdika/3WoQXRSGfS6zt zFeIQZv44tuKBbA9lKxhp3xOBClCvKxrhk5YMe8IU7rK2fWjVxwOS+J66g54PfsSyU 2kaM3jk/C6HyDWDkfRRfelnzFm4P2Nw9ffPJJ05DhuAqtmZ+4fJ2Fv/zVYBef/ZmSr OU8kTKNOv+N4Q== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs: remove btrfs_lru_cache_is_full() inline function Date: Tue, 21 Mar 2023 11:37:04 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Filipe Manana It's not used anywhere at the moment, but it was used in earlier version of a patch that removed its use in the second version. So just remove btrfs_lru_cache_is_full(). Signed-off-by: Filipe Manana Reviewed-by: Johannes Thumshirn --- fs/btrfs/lru_cache.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/btrfs/lru_cache.h b/fs/btrfs/lru_cache.h index de3e18bce24a..00328c856be6 100644 --- a/fs/btrfs/lru_cache.h +++ b/fs/btrfs/lru_cache.h @@ -55,11 +55,6 @@ static inline unsigned int btrfs_lru_cache_size(const struct btrfs_lru_cache *ca return cache->size; } -static inline bool btrfs_lru_cache_is_full(const struct btrfs_lru_cache *cache) -{ - return cache->size >= cache->max_size; -} - static inline struct btrfs_lru_cache_entry *btrfs_lru_cache_lru_entry( struct btrfs_lru_cache *cache) {