ext4: clean up error handling when orphan list is corrupted
Orabug:
25256922
[ Upstream commit
7827a7f6ebfcb7f388dc47fddd48567a314701ba ]
Instead of just printing warning messages, if the orphan list is
corrupted, declare the file system is corrupted. If there are any
reserved inodes in the orphaned inode list, declare the file system
corrupted and stop right away to avoid doing more potential damage to
the file system.
Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit
e0934da7eb12fe444a9b9225a9f2c9281d3e2b8a)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>