Skip to content

Commit 376207a

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: compress: remove unneeded code
- f2fs_write_multi_pages - f2fs_compress_pages - init_compress_ctx - compress_pages - destroy_compress_ctx --- 1 - f2fs_write_compressed_pages - destroy_compress_ctx --- 2 destroy_compress_ctx() in f2fs_write_multi_pages() is redundant, remove it. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent e90027d commit 376207a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/f2fs/compress.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,9 +1388,6 @@ int f2fs_write_multi_pages(struct compress_ctx *cc,
13881388
struct writeback_control *wbc,
13891389
enum iostat_type io_type)
13901390
{
1391-
struct f2fs_inode_info *fi = F2FS_I(cc->inode);
1392-
const struct f2fs_compress_ops *cops =
1393-
f2fs_cops[fi->i_compress_algorithm];
13941391
int err;
13951392

13961393
*submitted = 0;
@@ -1405,7 +1402,6 @@ int f2fs_write_multi_pages(struct compress_ctx *cc,
14051402

14061403
err = f2fs_write_compressed_pages(cc, submitted,
14071404
wbc, io_type);
1408-
cops->destroy_compress_ctx(cc);
14091405
kfree(cc->cpages);
14101406
cc->cpages = NULL;
14111407
if (!err)

0 commit comments

Comments
 (0)