]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: zswap: rename zswap_free_entry to zswap_entry_free
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 30 Jan 2024 01:36:37 +0000 (20:36 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:42 +0000 (10:24 -0800)
There is a zswap_entry_ namespace with multiple functions already.

Link: https://lkml.kernel.org/r/20240130014208.565554-2-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Acked-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c

index 2d7f594e6d07fa11f9259b277c93e5d1d94dbf24..5cb79cb497c06bd4e2f05ed54a556b8f03c2c7ea 100644 (file)
@@ -519,7 +519,7 @@ static struct zpool *zswap_find_zpool(struct zswap_entry *entry)
  * Carries out the common pattern of freeing and entry's zpool allocation,
  * freeing the entry itself, and decrementing the number of stored pages.
  */
-static void zswap_free_entry(struct zswap_entry *entry)
+static void zswap_entry_free(struct zswap_entry *entry)
 {
        if (!entry->length)
                atomic_dec(&zswap_same_filled_pages);
@@ -554,7 +554,7 @@ static void zswap_entry_put(struct zswap_entry *entry)
        WARN_ON_ONCE(refcount < 0);
        if (refcount == 0) {
                WARN_ON_ONCE(!RB_EMPTY_NODE(&entry->rbnode));
-               zswap_free_entry(entry);
+               zswap_entry_free(entry);
        }
 }