Skip to content

Commit c9ff3c6

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
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 <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent fce17cb commit c9ff3c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/quota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ static bool need_sync(struct gfs2_quota_data *qd)
11461146
void gfs2_quota_unlock(struct gfs2_inode *ip)
11471147
{
11481148
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
1149-
struct gfs2_quota_data *qda[4];
1149+
struct gfs2_quota_data *qda[2 * GFS2_MAXQUOTAS];
11501150
unsigned int count = 0;
11511151
u32 x;
11521152
int found;

0 commit comments

Comments
 (0)