Skip to content

Commit

Permalink
xfs: Fix error path in xfs_get_acl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Gruenbacher authored and dchinner committed Nov 9, 2015
1 parent fc0561c commit edfb8eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions fs/xfs/xfs_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion fs/xfs/xfs_acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edfb8eb

Please sign in to comment.