projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce17cb
)
gfs2: use constant for array size
author
Bob Peterson
<rpeterso@redhat.com>
Thu, 22 Jun 2023 16:37:37 +0000
(11:37 -0500)
committer
Andreas Gruenbacher
<agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:18 +0000
(15:58 +0200)
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>
fs/gfs2/quota.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index e12d54104485823fb007c755e7672a8aab4c8401..9c7234256ebc48b5302bd160124f1de9f0acadb2 100644
(file)
--- 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;