Commit 4f31f357 authored by Zhiguo Niu's avatar Zhiguo Niu Committed by Greg Kroah-Hartman
Browse files

f2fs: fix to check return value of f2fs_recover_xattr_data



[ Upstream commit 86d7d57a ]

Should check return value of f2fs_recover_xattr_data in
__f2fs_setxattr rather than doing invalid retry if error happen.

Also just do set_page_dirty in f2fs_recover_xattr_data when
page is changed really.

Fixes: 50a472bb ("f2fs: do not return EFSCORRUPTED, but try to run online repair")
Signed-off-by: default avatarZhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2c6537c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment