ext4: change LRU to round-robin in extent status tree shrinker
[deliverable/linux.git] / fs / ext4 / ext4.h
index 98da4cda9d18a5b94cd272a3cf8e5c6249285334..ab6caf55f5bf9ee34a98c67f9bdc31a8310f9efb 100644 (file)
@@ -878,10 +878,9 @@ struct ext4_inode_info {
        /* extents status tree */
        struct ext4_es_tree i_es_tree;
        rwlock_t i_es_lock;
-       struct list_head i_es_lru;
+       struct list_head i_es_list;
        unsigned int i_es_all_nr;       /* protected by i_es_lock */
-       unsigned int i_es_lru_nr;       /* protected by i_es_lock */
-       unsigned long i_touch_when;     /* jiffies of last accessing */
+       unsigned int i_es_shk_nr;       /* protected by i_es_lock */
 
        /* ialloc */
        ext4_group_t    i_last_alloc_group;
@@ -1322,10 +1321,11 @@ struct ext4_sb_info {
 
        /* Reclaim extents from extent status tree */
        struct shrinker s_es_shrinker;
-       struct list_head s_es_lru;
+       struct list_head s_es_list;
+       long s_es_nr_inode;
        struct ext4_es_stats s_es_stats;
        struct mb_cache *s_mb_cache;
-       spinlock_t s_es_lru_lock ____cacheline_aligned_in_smp;
+       spinlock_t s_es_lock ____cacheline_aligned_in_smp;
 
        /* Ratelimit ext4 messages. */
        struct ratelimit_state s_err_ratelimit_state;
This page took 0.024026 seconds and 5 git commands to generate.