summaryrefslogtreecommitdiff
path: root/fs/btrfs/lru_cache.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-02-16 14:14:44 +0100
committerDavid Sterba <dsterba@suse.com>2024-03-04 16:24:53 +0100
commite92567166694f1f994d00af230fdd0014c6217d5 (patch)
tree01de80b4fb6cac5d15c5bcc22234dd74bebb8afe /fs/btrfs/lru_cache.h
parentc207adc1475e412f0df222121d8c259e05ec8e1e (diff)
btrfs: open code trivial btrfs_lru_cache_size()
The helper is really trivial, reading a cache size can be done directly. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lru_cache.h')
-rw-r--r--fs/btrfs/lru_cache.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/lru_cache.h b/fs/btrfs/lru_cache.h
index 390a12b61fd2..e32906ab6faa 100644
--- a/fs/btrfs/lru_cache.h
+++ b/fs/btrfs/lru_cache.h
@@ -52,11 +52,6 @@ struct btrfs_lru_cache {
#define btrfs_lru_cache_for_each_entry_safe(cache, entry, tmp) \
list_for_each_entry_safe_reverse((entry), (tmp), &(cache)->lru_list, lru_list)
-static inline unsigned int btrfs_lru_cache_size(const struct btrfs_lru_cache *cache)
-{
- return cache->size;
-}
-
static inline struct btrfs_lru_cache_entry *btrfs_lru_cache_lru_entry(
struct btrfs_lru_cache *cache)
{