]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:52 +0000 (18:18 -0700)
commitfdfcb7deb2c4a0cfcaa5a9b9bffd95faa0f43b49
treeec6beee1e602ec42f1bfdf053999805174df954c
parentb0bd19d30cf1719065be860ccc8485ec71321f12
ext4: clean up error handling when orphan list is corrupted

commit 7827a7f6ebfcb7f388dc47fddd48567a314701ba upstream.

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.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ialloc.c