]> Git Repo - linux.git/commit - mm/z3fold.c
mm/z3fold: define macro NCHUNKS as TOTAL_CHUNKS - ZHDR_CHUNKS
authorMiaohe Lin <[email protected]>
Thu, 1 Jul 2021 01:50:24 +0000 (18:50 -0700)
committerLinus Torvalds <[email protected]>
Thu, 1 Jul 2021 03:47:28 +0000 (20:47 -0700)
commite3c0db4fec46b46a0c22b46bb55392b36ec940fc
treeb060362dee895c6cd389a7b50d7bceba738dc211
parentc6d9eee2a68619b5ba1c25e406a9403f33b56902
mm/z3fold: define macro NCHUNKS as TOTAL_CHUNKS - ZHDR_CHUNKS

Patch series "Cleanup and fixup for z3fold".

This series contains cleanups to remove unused function, redefine macro to
improve readability and so on.  Also this fixes several bugs in z3fold,
such as memory leak in z3fold_destroy_pool().  More details can be found
in the respective changelogs.

This patch (of 6):

To improve code readability, we could define macro NCHUNKS as TOTAL_CHUNKS
- ZHDR_CHUNKS.  No functional change intended.

Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Vitaly Wool <[email protected]>
Cc: Hillf Danton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/z3fold.c
This page took 0.053213 seconds and 4 git commands to generate.