GFS2: Increase the max number of ACLs
[firefly-linux-kernel-4.4.55.git] / fs / gfs2 / acl.c
index 9c59ebe790b6ac9cae5f529ee2c9029e813b6fda..394dc5561842cf82f2890c6f02f388606d9b6301 100644 (file)
@@ -85,7 +85,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)
+       if (acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode)))
                return -E2BIG;
 
        if (type == ACL_TYPE_ACCESS) {