diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-04-26 04:38:13 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-04-28 20:25:15 +0300 |
commit | 52d8ea4f2406c14d632a0e7f816bbb18d8c3e9ed (patch) | |
tree | 7d4b48f56a99f46a5756b8e8667581c5cc776a08 /fs/xfs/xfs_trans.c | |
parent | f1e6a8d72806d2d57560b4873d8aa42c420384ee (diff) | |
download | linux-52d8ea4f2406c14d632a0e7f816bbb18d8c3e9ed.tar.xz |
xfs: create shadow transaction reservations for computing minimum log size
Every time someone changes the transaction reservation sizes, they
introduce potential compatibility problems if the changes affect the
minimum log size that we validate at mount time. If the minimum log
size gets larger (which should be avoided because doing so presents a
serious risk of log livelock), filesystems created with old mkfs will
not mount on a newer kernel; if the minimum size shrinks, filesystems
created with newer mkfs will not mount on older kernels.
Therefore, enable the creation of a shadow log reservation structure
where we can "undo" the effects of tweaks when computing minimum log
sizes. These shadow reservations should never be used in practice, but
they insulate us from perturbations in minimum log size.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
0 files changed, 0 insertions, 0 deletions