]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: compress: avoid duplicate counting of valid blocks when read compressed file
authorFengnan Chang <changfengnan@vivo.com>
Thu, 12 Aug 2021 11:36:41 +0000 (19:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Aug 2021 20:46:05 +0000 (13:46 -0700)
commit1d63bf71841322cab6dd83b050bb2496df89d631
tree6a2863d0ce6c34ade071eb42aaa4b7a840961cee
parent6e214a2e3690460aa32c6f52acb13991bba364f8
f2fs: compress: avoid duplicate counting of valid blocks when read compressed file

Since cluster is basic unit of compression, one cluster is compressed or
not, so we can calculate valid blocks only for first page in cluster,
the other pages just skip.

Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c