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>
Sat, 26 Jan 2019 08:42:48 +0000 (09:42 +0100)
commit24f8bb89456419da6a5907b262afd1d0934c3bc9
tree80e37a47afdd0cadf88fab04acaf04bad6a60e31
parentb31ccde086671b372957e1fe1c60968e6d7464d7
f2fs: Add sanity_check_inode() function

This was done as part of commits 5d64600d4f33 "f2fs: avoid bug_on on
corrupted inode" and 76d56d4ab4f2 "f2fs: fix to do sanity check with
extra_attr feature" upstream, but the specific checks they added are
not applicable to 4.4.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/inode.c