OSDN Git Service

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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 19:42:25 +0000 (15:42 -0400)
commitde05ca8526796c7e9f7c7282b7f89a818af19818
treecc98259f026483d15edd01629d71eefd4bb24915
parent27f394a7718d00ad16c59c616638cb46c6cd6a9d
ext4: move call to ext4_error() into ext4_xattr_check_block()

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
fs/ext4/xattr.c