f2fs: fix kbytes written stat for multi-device case
authorChao Yu <yuchao0@huawei.com>
Fri, 27 Nov 2020 13:20:06 +0000 (21:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Dec 2020 06:00:22 +0000 (22:00 -0800)
commit3a0a9cbc44bbb8a23a3fc12edfd1834452360a50
tree659f3cf7f5c0a1f69eda2a8b44e5f084f56f4cf8
parentb28f047b28c51d0b9864c34b097bb0b221ea7247
f2fs: fix kbytes written stat for multi-device case

For multi-device case, one f2fs image includes multi devices, so it
needs to account bytes written of all block devices belong to the image
rather than one main block device, fix it.

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