diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-02-24 21:09:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 22:38:34 +0100 |
commit | c457cd96f18c7137287700c409d2ae16c6395256 (patch) | |
tree | 74773ceb5fb7d8d599ff97aa9bd2bb89bd2d2881 /mm/compaction.c | |
parent | z3fold: remove unused attribute for release_z3fold_page (diff) | |
download | linux-c457cd96f18c7137287700c409d2ae16c6395256.tar.xz linux-c457cd96f18c7137287700c409d2ae16c6395256.zip |
z3fold: simplify the zhdr initialization code in init_z3fold_page()
We can simplify the zhdr initialization by memset() the zhdr first
instead of set struct member to zero one by one. This would also make
code more compact and clear.
Link: https://lkml.kernel.org/r/20210120085851.16159-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions