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>
This commit is contained in:
parent
fce17cb0ee
commit
c9ff3c65c2
|
@ -1146,7 +1146,7 @@ static bool need_sync(struct gfs2_quota_data *qd)
|
||||||
void gfs2_quota_unlock(struct gfs2_inode *ip)
|
void gfs2_quota_unlock(struct gfs2_inode *ip)
|
||||||
{
|
{
|
||||||
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
|
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;
|
unsigned int count = 0;
|
||||||
u32 x;
|
u32 x;
|
||||||
int found;
|
int found;
|
||||||
|
|
Loading…
Reference in New Issue