OSDN Git Service

f2fs: check all the data segments against all node ones
authorSurbhi Palande <f2fsnewbie@gmail.com>
Fri, 23 Aug 2019 22:40:45 +0000 (15:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 10:27:40 +0000 (12:27 +0200)
commitbf0b3b4b81c212d00e6bdc7171ad4a7122988d38
tree06f070037660b55776926cdde47bcc3dbfeff469
parentba118859b4bc7986ce36c78e5b267d1bcaac1ea4
f2fs: check all the data segments against all node ones

[ Upstream commit 1166c1f2f69117ad254189ca781287afa6e550b6 ]

As a part of the sanity checking while mounting, distinct segment number
assignment to data and node segments is verified. Fixing a small bug in
this verification between node and data segments. We need to check all
the data segments with all the node segments.

Fixes: 042be0f849e5f ("f2fs: fix to do sanity check with current segment number")
Signed-off-by: Surbhi Palande <csurbhi@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/super.c