btrfs: Replace -ENOENT by -ERANGE in btrfs_get_acl()
authorSalah Triki <salah.triki@gmail.com>
Sun, 3 Jul 2016 04:40:10 +0000 (05:40 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:52:25 +0000 (13:52 +0200)
commita60617d0ae51c22f652b6fcf4ca56558c76e5aad
tree8516f9a6c311843449b25389d57e7ec11cf5b3a8
parent3d48d9810de4ee1bca4a1c905efd0618944904cd
btrfs: Replace -ENOENT by -ERANGE in btrfs_get_acl()

size contains the value returned by posix_acl_from_xattr(), which
returns -ERANGE, -ENODATA, zero, or an integer greater than zero. So
replace -ENOENT by -ERANGE.

Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/acl.c