Commit 600942e0fdb7ed1565d056d7305c46c7c0544a3e

Authored by Lars Ellenberg
Committed by Philipp Reisner
1 parent 738a84b25c

lru_cache.h: fix comments referring to ts_ instead of lc_

For some time we contemplated calling the "struct lru_cache"
a "struct tracked_set", and some comments kept the ts_ prefix.

Fix those to match the member field names.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

include/linux/lru_cache.h
... ... @@ -139,9 +139,9 @@
139 139 * .list is on one of three lists:
140 140 * in_use: currently in use (refcnt > 0, lc_number != LC_FREE)
141 141 * lru: unused but ready to be reused or recycled
142   - * (ts_refcnt == 0, lc_number != LC_FREE),
  142 + * (lc_refcnt == 0, lc_number != LC_FREE),
143 143 * free: unused but ready to be recycled
144   - * (ts_refcnt == 0, lc_number == LC_FREE),
  144 + * (lc_refcnt == 0, lc_number == LC_FREE),
145 145 *
146 146 * an element is said to be "in the active set",
147 147 * if either on "in_use" or "lru", i.e. lc_number != LC_FREE.
... ... @@ -160,8 +160,8 @@
160 160 struct hlist_node colision;
161 161 struct list_head list; /* LRU list or free list */
162 162 unsigned refcnt;
163   - /* back "pointer" into ts_cache->element[index],
164   - * for paranoia, and for "ts_element_to_index" */
  163 + /* back "pointer" into lc_cache->element[index],
  164 + * for paranoia, and for "lc_element_to_index" */
165 165 unsigned lc_index;
166 166 /* if we want to track a larger set of objects,
167 167 * it needs to become arch independend u64 */
... ... @@ -190,8 +190,8 @@
190 190 /* Arbitrary limit on maximum tracked objects. Practical limit is much
191 191 * lower due to allocation failures, probably. For typical use cases,
192 192 * nr_elements should be a few thousand at most.
193   - * This also limits the maximum value of ts_element.ts_index, allowing the
194   - * 8 high bits of .ts_index to be overloaded with flags in the future. */
  193 + * This also limits the maximum value of lc_element.lc_index, allowing the
  194 + * 8 high bits of .lc_index to be overloaded with flags in the future. */
195 195 #define LC_MAX_ACTIVE (1<<24)
196 196  
197 197 /* statistics */