f2fs: handle error case when adding xattr entry
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 Oct 2017 22:05:16 +0000 (15:05 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 03:28:25 +0000 (19:28 -0800)
commitcef5e7165c08a7bb9c29ee2d9c29fd95c821cace
treec5101d1aa7e875fe98f6190b18541f8f4fdc2676
parenta7848c0dee2c488c1fbc8453e2a7f2fa8d078da1
f2fs: handle error case when adding xattr entry

This patch fixes recovering incomplete xattr entries remaining in inline xattr
and xattr block, caused by any kind of errors.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c