summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJie Liu2014-02-07 05:26:11 +0100
committerDave Chinner2014-02-07 05:26:11 +0100
commit4ae69fea588148360d470ce604714b6d619ea749 (patch)
tree4903bfcfe88296ee1ce49edb1f209f79d0b2620b /fs
parentxfs: sanitize sb_inopblock in xfs_mount_validate_sb (diff)
downloadkernel-qcow2-linux-4ae69fea588148360d470ce604714b6d619ea749.tar.gz
kernel-qcow2-linux-4ae69fea588148360d470ce604714b6d619ea749.tar.xz
kernel-qcow2-linux-4ae69fea588148360d470ce604714b6d619ea749.zip
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 <jeff.liu@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/xfs_acl.c2
1 files changed, 1 insertions, 1 deletions
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;