]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: include non-compressed blocks in compr_written_block
authorDaeho Jeong <daehojeong@google.com>
Wed, 6 Oct 2021 17:49:10 +0000 (10:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:46 +0000 (11:04 +0100)
commit616c1311b0f32d904a05fecd979b9c80351b7c37
tree3afec3959c0e972b51cd53ab7c7b956502d74b08
parent25b7077e30eed17c05cc73272d7e2e026ee20f34
f2fs: include non-compressed blocks in compr_written_block

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@vger.kernel.org
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/compress.c