summaryrefslogtreecommitdiff
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2023-06-22 19:37:37 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-05 16:58:18 +0300
commitc9ff3c65c26b8f89c6b925ce257fac348559d484 (patch)
treefe8701f385f67aa361d6628a8a5389d625e7d9e8 /fs/gfs2/quota.c
parentfce17cb0eebfb90618f0fcfbdc7f8e0aa207c81a (diff)
downloadlinux-c9ff3c65c26b8f89c6b925ce257fac348559d484.tar.xz
gfs2: use constant for array size
Function gfs2_quota_unlock declared an array of 4 qd elements. We have a constant for that, we should be using it. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index e12d54104485..9c7234256ebc 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1146,7 +1146,7 @@ static bool need_sync(struct gfs2_quota_data *qd)
void gfs2_quota_unlock(struct gfs2_inode *ip)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
- struct gfs2_quota_data *qda[4];
+ struct gfs2_quota_data *qda[2 * GFS2_MAXQUOTAS];
unsigned int count = 0;
u32 x;
int found;