xfs: fix broken log reservation debugging
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 23 May 2019 15:45:21 +0000 (08:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 24 May 2019 14:32:01 +0000 (07:32 -0700)
commitd31d718528dd3686bf2163af5ef6d3afb65bb7aa
tree33aa9e4f3d3443f9c6c23dfee4e373ad53356f14
parent5cd213b0fec640a46adc5e6e4dfc7763aa54b3b2
xfs: fix broken log reservation debugging

xlog_print_tic_res() is supposed to print a human readable string for
each element of the log ticket reservation array.  Unfortunately, I
forgot to update the string array when we added rmap & reflink support,
so the debug message prints "region[3]: (null) - 352 bytes" which isn't
useful at all.  Add the missing elements and add a build check so that
we don't forget again to add a string when adding a new XLOG_REG_TYPE.

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