f2fs: Don't overwrite all types of node to keep node chain
authorYunlei He <heyunlei@huawei.com>
Wed, 7 Mar 2018 08:22:50 +0000 (16:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:13:30 +0000 (04:13 -0700)
commit7f270a67a1da90ff6c8e5cf681d7a520e3025c4b
treec7c31112c5de3cad6354c14c057037590b961a3d
parentc6a9e6a41f4f088514a639df9e666633d55b6781
f2fs: Don't overwrite all types of node to keep node chain

Currently, we enable node SSR by default, and mixed
different types of node segment to do SSR more intensively.
Although reuse warm node is not allowed, warm node chain
will be destroyed by errors introduced by other types
node chain. So we'd better forbid reusing all types
of node to keep warm node chain.

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