f2fs: use generic EFSBADCRC/EFSCORRUPTED
[ Upstream commit 10f966bbf521bb9b2e497bbca496a5141f4071d0 ]
f2fs uses EFAULT as error number to indicate filesystem is corrupted
all the time, but generic filesystems use EUCLEAN for such condition,
we need to change to follow others.
This patch adds two new macros as below to wrap more generic error
code macros, and spread them in code.
EFSBADCRC EBADMSG /* Bad CRC detected */
EFSCORRUPTED EUCLEAN /* Filesystem is corrupted */
Reported-by: Pavel Machek <firstname.lastname@example.org>
Signed-off-by: Chao Yu <email@example.com>
Acked-by: Pavel Machek <firstname.lastname@example.org>
Signed-off-by: Jaegeuk Kim <email@example.com>
Signed-off-by: Sasha Levin <firstname.lastname@example.org>
14 files changed