f2fs: fix to return error number of read_all_xattrs correctly
authorChao Yu <yuchao0@huawei.com>
Sun, 18 Sep 2016 15:30:04 +0000 (23:30 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 22 Sep 2016 18:43:05 +0000 (11:43 -0700)
commit866969668aebe9626c083b9ababc8f88454ce049
treebdde4f317b0a3362cf6731245146dfca0e9e1cec
parentebfa732217fd1dba7118aa5d37455fbf2f94c6b7
f2fs: fix to return error number of read_all_xattrs correctly

We treat all error in read_all_xattrs as a no memory error, which covers
the real reason of failure in it. Fix it by return correct errno in order
to reflect the real cause.

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