diff options
author | Chao Yu | 2016-02-22 11:32:13 +0100 |
---|---|---|
committer | Jaegeuk Kim | 2016-02-23 06:40:00 +0100 |
commit | 17d899df4678a19b6715e225e2c2d175151887a7 (patch) | |
tree | 2859183c3c0ad022455cc91029b48070ba2ea76f /fs/f2fs/crypto_policy.c | |
parent | f2fs: remain last victim segment number ascending order (diff) | |
download | kernel-qcow2-linux-17d899df4678a19b6715e225e2c2d175151887a7.tar.gz kernel-qcow2-linux-17d899df4678a19b6715e225e2c2d175151887a7.tar.xz kernel-qcow2-linux-17d899df4678a19b6715e225e2c2d175151887a7.zip |
f2fs: fix the wrong stat count of calling gc
With a partition which was formated as multi segments in one section,
we stated incorrectly for count of gc operation.
e.g., for a partition with segs_per_sec = 4
cat /sys/kernel/debug/f2fs/status
GC calls: 208 (BG: 7)
- data segments : 104 (52)
- node segments : 104 (24)
GC called count should be (104 (data segs) + 104 (node segs)) / 4 = 52,
rather than 208. Fix it.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/crypto_policy.c')
0 files changed, 0 insertions, 0 deletions