f2fs: Add sanity_check_inode() function
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Thu, 29 Nov 2018 19:17:34 +0000 (19:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:41:15 +0000 (19:41 +0100)
commit2598fc56ed65f69e303ccee6d5fe756a56f87779
treea729a83bb53ced5d28d41b3882b6b5eabbdc7d1a
parentf3d6361a96a455c8ba12226a04efa67a0ada4966
f2fs: Add sanity_check_inode() function

This was done as part of commit 5d64600d4f33 "f2fs: avoid bug_on on
corrupted inode" upstream, but the specific check that commit added is
not applicable to 4.14.

Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/inode.c