xfs: Fix error path in xfs_get_acl
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 9 Nov 2015 23:09:45 +0000 (10:09 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 9 Nov 2015 23:09:45 +0000 (10:09 +1100)
commitedfb8ebce225a0638cf62591d4ccb502f052ffd4
tree4a5a01b0f38928b47f304dcfc564e3bb3c719440
parentfc0561cefc04e7803c0f6501ca4f310a502f65b8
xfs: Fix error path in xfs_get_acl

Error codes from xfs_attr_get other than -ENOATTR were not properly
reported.  Fix that.

In addition, the declaration of struct xfs_inode in xfs_acl.h isn't needed.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_acl.c
fs/xfs/xfs_acl.h