diff options
author | Shida Zhang <[email protected]> | 2022-10-04 16:39:42 +1100 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2022-10-04 16:39:42 +1100 |
commit | 44159659df8ca381b84261e11058b2176fa03ba0 (patch) | |
tree | e97f2b341f200ae8ef29babfa377290aa91a0e3b /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | dc256418235a8355fbdf83b90048d8704b8d1654 (diff) |
xfs: trim the mapp array accordingly in xfs_da_grow_inode_int
Take a look at the for-loop in xfs_da_grow_inode_int:
======
for(){
nmap = min(XFS_BMAP_MAX_NMAP, count);
...
error = xfs_bmapi_write(...,&mapp[mapi], &nmap);//(..., $1, $2)
...
mapi += nmap;
}
=====
where $1 stands for the start address of the array,
while $2 is used to indicate the size of the array.
The array $1 will advance by $nmap in each iteration after
the allocation of extents.
But the size $2 still remains unchanged, which is determined by
min(XFS_BMAP_MAX_NMAP, count).
It seems that it has forgotten to trim the mapp array after each
iteration, so change it.
Signed-off-by: Shida Zhang <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions