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>
此提交包含在:
Andreas Gruenbacher
2015-11-10 10:09:45 +11:00
提交者 Dave Chinner
父節點 fc0561cefc
當前提交 edfb8ebce2
共有 2 個檔案被更改,包括 1 行新增1 行删除

查看文件

@@ -163,6 +163,7 @@ xfs_get_acl(struct inode *inode, int type)
*/
if (error == -ENOATTR)
goto out_update_cache;
acl = ERR_PTR(error);
goto out;
}

查看文件

@@ -20,7 +20,6 @@
struct inode;
struct posix_acl;
struct xfs_inode;
#ifdef CONFIG_XFS_POSIX_ACL
extern struct posix_acl *xfs_get_acl(struct inode *inode, int type);