Skip to contentSkip to conversation

z3fold: Remove unused attribute for release_z3fold_page

PATCH Applied Miaohe Lin 1 participant 1 message Jan 20, 2021 Memory management

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 z3fold: Remove unused attribute for release_z3fold_page

Since commit dcf5aedb24f8 ("z3fold: stricter locking and more careful reclaim"), release_z3fold_page() is used again. So we can drop the unused attribute safely.

---
 mm/z3fold.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/z3fold.c +1 -2
index dacb0d70fa61..8e53cdf4d190 100644
@@ -541,8 +541,7 @@ static void __release_z3fold_page(struct z3fold_header *zhdr, bool locked)
 	spin_unlock(&pool->stale_lock);
 }
 
-static void __attribute__((__unused__))
-			release_z3fold_page(struct kref *ref)
+static void release_z3fold_page(struct kref *ref)
 {
 	struct z3fold_header *zhdr = container_of(ref, struct z3fold_header,
 						refcount);
Signature · 1 line
2.19.1