f2fs: sanity check size of nat and sit cache
authorJin Qian <jinqian@android.com>
Thu, 1 Jun 2017 18:18:30 +0000 (11:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:08:03 +0000 (15:08 -0700)
commit19e117a50135efbb1d7c5ab1f24522162cc30bf0
treebbede151d41a949682bcbb7aee323417ed1c4030
parent58d2eacd3b0ef6eb7d7a786021f1bcd7f147082d
f2fs: sanity check size of nat and sit cache

commit 21d3f8e1c3b7996ce239ab6fa82e9f7a8c47d84d upstream.

Make sure number of entires doesn't exceed max journal size.

Signed-off-by: Jin Qian <jinqian@android.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/segment.c