f2fs: disable f2fs_check_rb_tree_consistence
authorChao Yu <yuchao0@huawei.com>
Fri, 22 Jun 2018 08:06:59 +0000 (16:06 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 27 Jul 2018 09:03:59 +0000 (18:03 +0900)
commit67fce70ba341f772073cac9c3044aa98c69b24fb
tree84a8f0b4254a9d6b98bc3dede5b7647778d0f3d0
parente1da7872f6eda977bd812346bf588c35e4495a1e
f2fs: disable f2fs_check_rb_tree_consistence

If there is millions of discard entries cached in rb tree, each
sanity check of it can cause very long latency as held cmd_lock
blocking other lock grabbers.

In other aspect, we have enabled the check very long time, as
we see, there is no such inconsistent condition caused by bugs.

But still we do not choose to kill it directly, instead, adding
an flag to disable the check now, if there is related code change,
we can reuse it to detect bugs.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c