]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ffaf38df96865694d6a4624617c88a21105f38b
tree33aa9e4f3d3443f9c6c23dfee4e373ad53356f14
parent28258d6db9f85ee120f1ca8ff4f544f264995341
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