diff options
author | Bob Peterson <rpeterso@redhat.com> | 2023-06-22 11:37:37 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-09-05 15:58:18 +0200 |
commit | c9ff3c65c26b8f89c6b925ce257fac348559d484 (patch) | |
tree | fe8701f385f67aa361d6628a8a5389d625e7d9e8 /fs/gfs2/quota.c | |
parent | fce17cb0eebfb90618f0fcfbdc7f8e0aa207c81a (diff) |
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.c | 2 |
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; |