]> asedeno.scripts.mit.edu Git - linux.git/commit
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>
Wed, 1 Aug 2018 18:52:36 +0000 (11:52 -0700)
commit970e348d9829e9fc3091da2fe189ab34a07201e6
tree799222833d1de4f7f0170eb4011ef4865c677008
parentfd8c8caf7e7c8261a92ce0f7f2cd0adb8afd9e0d
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