ext4: simplify ext4 error translation
authorJan Kara <jack@suse.cz>
Fri, 27 Nov 2020 11:33:59 +0000 (12:33 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Dec 2020 18:30:55 +0000 (13:30 -0500)
commit02a7780e4d2fcf438ac6773bc469e7ada2af56be
tree59ed7ec0a4e11b6daeabf2f0c7a916d142deb313
parent4067662388f97d0f360e568820d9d5bac6a3c9fa
ext4: simplify ext4 error translation

We convert errno's to ext4 on-disk format error codes in
save_error_info(). Add a function and a bit of macro magic to make this
simpler.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20201127113405.26867-7-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c