]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: compress: clean up parameter of __f2fs_cluster_blocks()
authorChao Yu <yuchao0@huawei.com>
Wed, 12 May 2021 09:52:57 +0000 (17:52 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 14 May 2021 18:22:09 +0000 (11:22 -0700)
commit78a0a53998f76c7c83f24e13bac18f0cf59584c4
tree861a8cb185e54461078af09695f4912ecfc4e819
parentffdcc5a980129186056b126112422b0f494472a2
f2fs: compress: clean up parameter of __f2fs_cluster_blocks()

Previously, in order to reuse __f2fs_cluster_blocks(),
f2fs_is_compressed_cluster() assigned a compress_ctx type variable,
which is used to pass few parameters (cc.inode, cc.cluster_size,
cc.cluster_idx), it's wasteful to allocate such large space in stack.

Let's clean up parameters of __f2fs_cluster_blocks() to avoid that.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c