zram: use statically allocated compression algorithm names#598
zram: use statically allocated compression algorithm names#598blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Conversation
|
Upstream branch: 7dff99b |
c475e20 to
14f6b99
Compare
|
Upstream branch: a75cb86 |
1d5fefd to
c696d3f
Compare
14f6b99 to
856dc37
Compare
|
Upstream branch: 4d349ee |
c696d3f to
80b7cb7
Compare
856dc37 to
40967f0
Compare
|
Upstream branch: 11439c4 |
80b7cb7 to
6496d88
Compare
40967f0 to
d4e9bad
Compare
|
Upstream branch: af4e9ef |
6496d88 to
cbbce75
Compare
ecd10e2 to
d0e1bed
Compare
|
Upstream branch: af4e9ef |
cbbce75 to
e652564
Compare
d0e1bed to
6b51c57
Compare
|
Upstream branch: 0031c06 |
e652564 to
7d89137
Compare
6b51c57 to
78036b2
Compare
|
Upstream branch: ecc64d2 |
7d89137 to
5823dfd
Compare
78036b2 to
bbb3394
Compare
|
Upstream branch: c107785 |
5823dfd to
bf8a536
Compare
bbb3394 to
901a429
Compare
|
Upstream branch: 5ee8dbf |
bf8a536 to
07dbacb
Compare
901a429 to
1f19ba6
Compare
|
Upstream branch: 1f318b9 |
07dbacb to
52508ac
Compare
1f19ba6 to
e79276a
Compare
|
Upstream branch: None |
52508ac to
cd466e7
Compare
e79276a to
0dd9afc
Compare
Currently, zram dynamically allocates memory for compressor algorithm names when they are set by the user. This requires careful memory management, including explicit `kfree` calls and special handling to avoid freeing statically defined default compressor names. This patch refactors the way zram handles compression algorithm names. Instead of storing dynamically allocated copies, `zram->comp_algs` will now store pointers directly to the static name strings defined within the `zcomp_ops` backend structures, thereby removing the need for conditional `kfree` calls. Signed-off-by: gao xu <gaoxu2@honor.com>
|
Upstream branch: 80234b5 |
cd466e7 to
9674247
Compare
Pull request for series with
subject: zram: use statically allocated compression algorithm names
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1058375