diff options
author | 2023-12-11 10:41:51 -0800 | |
---|---|---|
committer | 2023-12-13 14:16:27 -0800 | |
commit | 578bd4ce7100ae34f98c6b0147fe75cfa0dadbac (patch) | |
tree | 446409024968d5d652ea648da7f0ab1973708089 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfs: move xfs_ondisk.h to libxfs/ (diff) | |
download | wireguard-linux-578bd4ce7100ae34f98c6b0147fe75cfa0dadbac.tar.xz wireguard-linux-578bd4ce7100ae34f98c6b0147fe75cfa0dadbac.zip |
xfs: recompute growfsrtfree transaction reservation while growing rt volume
While playing with growfs to create a 20TB realtime section on a
filesystem that didn't previously have an rt section, I noticed that
growfs would occasionally shut down the log due to a transaction
reservation overflow.
xfs_calc_growrtfree_reservation uses the current size of the realtime
summary file (m_rsumsize) to compute the transaction reservation for a
growrtfree transaction. The reservations are computed at mount time,
which means that m_rsumsize is zero when growfs starts "freeing" the new
realtime extents into the rt volume. As a result, the transaction is
undersized and fails.
Fix this by recomputing the transaction reservations every time we
change m_rsumsize.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions