diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c index ba9456685f47d761d51afae92a55328e2d54d78a..9c59ebe790b6ac9cae5f529ee2c9029e813b6fda 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;