]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82b0dc6ffc728a5dce6ba05e9a06068839ef6015
treecc98259f026483d15edd01629d71eefd4bb24915
parent8172a94511433e8a2738b9888885a3a214d36169
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