aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2021-02-24 12:09:19 -0800
committerLinus Torvalds <[email protected]>2021-02-24 13:38:34 -0800
commit70ad3196a68b0857b49811da7a94ad4f5a8e75bb (patch)
tree2c311e99cc5da0e536557631aecd979aebbbf8cd
parent519983645a9f2ec339cabfa0c6ef7b09be985dd0 (diff)
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. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Cc: Vitaly Wool <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/z3fold.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/z3fold.c b/mm/z3fold.c
index dacb0d70fa61..8e53cdf4d190 100644
--- a/mm/z3fold.c
+++ b/mm/z3fold.c
@@ -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);