]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfs: print transaction log reservation on overrun
authorBrian Foster <bfoster@redhat.com>
Mon, 8 Jan 2018 18:41:35 +0000 (10:41 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Jan 2018 18:41:35 +0000 (10:41 -0800)
commit2c8f6265397642bb150d933fa46b1f7c294f4ffe
tree853c90867623f38d3727947ce829e49fcfe480d3
parent29c1c123a3f84e31005b86eb852d935daacbacdf
xfs: print transaction log reservation on overrun

The transaction dump code displays the content and reservation
consumption of a particular transaction in the event of an overrun.
It currently displays the reservation associated with the
transaction ticket, but not the original reservation attached to the
transaction.

The latter value reflects the original transaction reservation
calculation before additional reservation overhead is assigned, such
as for the CIL context header and potential split region headers.

Update xlog_print_trans() to also print the original transaction
reservation in the event of overrun. This provides a reference point
to identify how much reservation overhead was added to a particular
ticket by xfs_log_calc_unit_res().

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c