zram: compression algorithms name use static fields#597
zram: compression algorithms name use static fields#597blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
Conversation
|
Upstream branch: 7dff99b |
c475e20 to
14f6b99
Compare
|
Upstream branch: a75cb86 |
fe00675 to
5cb5b8d
Compare
14f6b99 to
856dc37
Compare
|
Upstream branch: 4d349ee |
5cb5b8d to
89eae70
Compare
856dc37 to
40967f0
Compare
|
Upstream branch: 11439c4 |
89eae70 to
269c02c
Compare
40967f0 to
d4e9bad
Compare
|
Upstream branch: af4e9ef |
269c02c to
e8cf7f8
Compare
ecd10e2 to
d0e1bed
Compare
|
Upstream branch: af4e9ef |
e8cf7f8 to
c5726bc
Compare
d0e1bed to
6b51c57
Compare
|
Upstream branch: 0031c06 |
c5726bc to
9132df9
Compare
6b51c57 to
78036b2
Compare
|
Upstream branch: ecc64d2 |
9132df9 to
d7eb5c9
Compare
78036b2 to
bbb3394
Compare
|
Upstream branch: c107785 |
d7eb5c9 to
b34ec1d
Compare
bbb3394 to
901a429
Compare
|
Upstream branch: 5ee8dbf |
b34ec1d to
75d2215
Compare
901a429 to
1f19ba6
Compare
|
Upstream branch: 1f318b9 |
75d2215 to
4ff5dc3
Compare
1f19ba6 to
e79276a
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: None |
4ff5dc3 to
91d3d26
Compare
Pull request for series with
subject: zram: compression algorithms name use static fields
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1058202