OSDN Git Service

f2fs: add proc entry to show victim_secmap bitmap
authorYunlong Song <yunlong.song@huawei.com>
Mon, 23 Jul 2018 14:10:22 +0000 (22:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 18 Sep 2018 20:39:24 +0000 (13:39 -0700)
commitbd293daff1f3ad54b7f3b24c3d91a2aaa4de3a45
tree430a991a787997eec38099396b9e71ce620124cc
parentb404b3cbb80afcdd5aaa3355c57b71a71a79359e
f2fs: add proc entry to show victim_secmap bitmap

This patch adds a new proc entry to show victim_secmap information in
more detail, which is very helpful to know the get_victim candidate
status clearly, and helpful to debug problems (e.g., some sections can
not gc all of its blocks, since some blocks belong to atomic file,
leaving victim_secmap with section bit setting, in extrem case, this
will lead all bytes of victim_secmap setting with 0xff).

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c