From: Jie Liu Date: Fri, 7 Feb 2014 04:26:11 +0000 (+1100) Subject: xfs: return -E2BIG if hit the maximum size limits of ACLs X-Git-Tag: next-20140306~79^2~4^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ae69fea588148360d470ce604714b6d619ea749;p=karo-tx-linux.git xfs: return -E2BIG if hit the maximum size limits of ACLs We should return -E2BIG rather than -EINVAL if hit the maximum size limits of ACLS, as the former is consistent with VFS xattr syscalls. Signed-off-by: Jie Liu Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c index 0ecec1896f25..6888ad886ff6 100644 --- a/fs/xfs/xfs_acl.c +++ b/fs/xfs/xfs_acl.c @@ -281,7 +281,7 @@ xfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) if (!acl) goto set_acl; - error = -EINVAL; + error = -E2BIG; if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) return error;