]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: correct return value of ->setxattr
authorChao Yu <chao2.yu@samsung.com>
Mon, 13 Jul 2015 09:45:19 +0000 (17:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Aug 2015 21:09:59 +0000 (14:09 -0700)
commit14b0cd40758c1b9ff4dc8982fdf107cf441ca8e6
treebd170a46f4b9d5b76acd3245899aa787b74e4e68
parent91cc497e8a565c67fa3d8e77a2d3c2d53a7ddff2
f2fs: correct return value of ->setxattr

This patch fixes to return correct error number of ->setxattr, which
is reported by xfstest tests/generic/026 as below:

generic/026      - output mismatch
    --- tests/generic/026.out
    +++ results/generic/026.out.bad
    @@ -4,6 +4,6 @@
     1 below acl max
     acl max
     1 above acl max
    -chacl: cannot set access acl on "largeaclfile": Argument list too long
    +chacl: cannot set access acl on "largeaclfile": Numerical result out of range
     use 16 aces
     use 17 aces
    ...
Ran: generic/026
Failures: generic/026
Failed 1 of 1 tests

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