]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: clean up error handling when orphan list is corrupted
authorTheodore Ts'o <tytso@mit.edu>
Sat, 30 Apr 2016 04:49:54 +0000 (00:49 -0400)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:21:53 +0000 (17:21 -0500)
commit108042097bb7879629289a014b64bf258102c564
treeda03084cc8600a532ac8f371e6bff2d0847556e0
parentd20d677b4ba74701ef7cb6cf8a49253ae79a242c
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>
fs/ext4/ialloc.c