This is a note to let you know that I've just added the patch titled f2fs: include non-compressed blocks in compr_written_block to the 5.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: f2fs-include-non-compressed-blocks-in-compr_written_block.patch and it can be found in the queue-5.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 09631cf3234d32156e7cae32275f5a4144c683c5 Mon Sep 17 00:00:00 2001 From: Daeho Jeong <daehojeong@xxxxxxxxxx> Date: Wed, 6 Oct 2021 10:49:10 -0700 Subject: f2fs: include non-compressed blocks in compr_written_block From: Daeho Jeong <daehojeong@xxxxxxxxxx> commit 09631cf3234d32156e7cae32275f5a4144c683c5 upstream. Need to include non-compressed blocks in compr_written_block to estimate average compression ratio more accurately. Fixes: 5ac443e26a09 ("f2fs: add sysfs nodes to get runtime compression stat") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Daeho Jeong <daehojeong@xxxxxxxxxx> Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/f2fs/compress.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1476,6 +1476,7 @@ int f2fs_write_multi_pages(struct compre if (cluster_may_compress(cc)) { err = f2fs_compress_pages(cc); if (err == -EAGAIN) { + add_compr_block_stat(cc->inode, cc->cluster_size); goto write; } else if (err) { f2fs_put_rpages_wbc(cc, wbc, true, 1); Patches currently in stable-queue which might be from daehojeong@xxxxxxxxxx are queue-5.14/f2fs-include-non-compressed-blocks-in-compr_written_block.patch