]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lru_cache.h: fix comments referring to ts_ instead of lc_
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 21 Feb 2011 12:20:57 +0000 (13:20 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:43 +0000 (16:47 +0200)
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>
lib/lru_cache.c

index 9f353f7f41ca88160ae621870d9bd86b97b2dc51..4f638b86674fb18da0d84a4dabb78c27b7265276 100644 (file)
@@ -378,7 +378,7 @@ struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr)
        /* it was not present in the active set.
         * we are going to recycle an unused (or even "free") element.
         * 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)) {
                ++lc->dirty;
                RETURN(NULL);