ext4: move call to ext4_error() into ext4_xattr_check_block()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 19:42:25 +0000 (15:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:31 +0000 (09:36 +0200)
commit598e04ae2fc402c364d3f0ee76599783149f573f
tree02d54a01207347b7225a11a481b247f03697d075
parentb2623d8166563a19bee0cc8292e4ec951a42a6da
ext4: move call to ext4_error() into ext4_xattr_check_block()

commit de05ca8526796c7e9f7c7282b7f89a818af19818 upstream.

Refactor the call to EXT4_ERROR_INODE() into ext4_xattr_check_block().
This simplifies the code, and fixes a problem where not all callers of
ext4_xattr_check_block() were not resulting in ext4_error() getting
called when the xattr block is corrupted.

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