summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-04-26 04:38:13 +0300
committerDarrick J. Wong <djwong@kernel.org>2022-04-28 20:25:15 +0300
commit52d8ea4f2406c14d632a0e7f816bbb18d8c3e9ed (patch)
tree7d4b48f56a99f46a5756b8e8667581c5cc776a08 /fs/xfs/xfs_trans.c
parentf1e6a8d72806d2d57560b4873d8aa42c420384ee (diff)
downloadlinux-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