Commit 0097f040 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

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: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 4738fa16
...@@ -378,7 +378,7 @@ struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr) ...@@ -378,7 +378,7 @@ struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr)
/* it was not present in the active set. /* it was not present in the active set.
* we are going to recycle an unused (or even "free") element. * we are going to recycle an unused (or even "free") element.
* user may need to commit a transaction to record that change. * user may need to commit a transaction to record that change.
* we serialize on flags & TF_DIRTY */ * we serialize on flags & LC_DIRTY */
if (test_and_set_bit(__LC_DIRTY, &lc->flags)) { if (test_and_set_bit(__LC_DIRTY, &lc->flags)) {
++lc->dirty; ++lc->dirty;
RETURN(NULL); RETURN(NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment