diff mbox series

btrfs: remove btrfs_lru_cache_is_full() inline function

Message ID aa7f733f40ef92199f6130e83e4d88ca861d92f7.1679398596.git.fdmanana@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs: remove btrfs_lru_cache_is_full() inline function | expand

Commit Message

Filipe Manana March 21, 2023, 11:37 a.m. UTC
From: Filipe Manana <fdmanana@suse.com>

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 <fdmanana@suse.com>
---
 fs/btrfs/lru_cache.h | 5 -----
 1 file changed, 5 deletions(-)

Comments

Johannes Thumshirn March 21, 2023, 12:15 p.m. UTC | #1
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
David Sterba March 22, 2023, 7:36 p.m. UTC | #2
On Tue, Mar 21, 2023 at 11:37:04AM +0000, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
> 
> 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 <fdmanana@suse.com>

Added to misc-next, thanks.
diff mbox series

Patch

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)
 {