aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2016-08-03 11:38:24 +1000
committerDave Chinner <[email protected]>2016-08-03 11:38:24 +1000
commit525488520ac69a3612dbceefa573b255a83005e9 (patch)
tree978afc575278c97d08bf3b371454f679484ca642 /tools/perf/scripts/python/export-to-postgresql.py
parentfa30f03cda26783b1294af6e7da9f1142da0f52e (diff)
xfs: rmap btree requires more reserved free space
Originally-From: Dave Chinner <[email protected]> The rmap btree is allocated from the AGFL, which means we have to ensure ENOSPC is reported to userspace before we run out of free space in each AG. The last allocation in an AG can cause a full height rmap btree split, and that means we have to reserve at least this many blocks *in each AG* to be placed on the AGFL at ENOSPC. Update the various space calculation functions to handle this. Also, because the macros are now executing conditional code and are called quite frequently, convert them to functions that initialise variables in the struct xfs_mount, use the new variables everywhere and document the calculations better. [[email protected]: don't reserve blocks if !rmap] [[email protected]: update m_ag_max_usable after growfs] Signed-off-by: Dave Chinner <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions