]> 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)
commit26592fd2679184d04fda5062eb5e68ddc6515417
treecc98259f026483d15edd01629d71eefd4bb24915
parent0dc651de952c1f88529fe665959a9a004956ad18
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