From: Jie Liu Date: Tue, 4 Mar 2014 03:28:39 +0000 (+0800) Subject: GFS2: return -E2BIG if hit the maximum limits of ACLs X-Git-Tag: v3.15-rc1~97^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f2113eb8a4ede4016199492f3e10f5a165b04fcd;p=karo-tx-linux.git GFS2: return -E2BIG if hit the maximum limits of ACLs Return -E2BIG rather than -EINVAL if hit the maximum size limits of ACLs, as the former errno is consistent with VFS xattr syscalls. This is pointed out by Dave Chinner in previous discussion thread: http://www.spinics.net/lists/linux-fsdevel/msg71125.html Signed-off-by: Jie Liu Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c index ba9456685f47..9c59ebe790b6 100644 --- a/fs/gfs2/acl.c +++ b/fs/gfs2/acl.c @@ -86,7 +86,7 @@ int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) BUG_ON(name == NULL); if (acl->a_count > GFS2_ACL_MAX_ENTRIES) - return -EINVAL; + return -E2BIG; if (type == ACL_TYPE_ACCESS) { umode_t mode = inode->i_mode;