Skip to content

Commit

Permalink
xfs: fix log ticket type printing
Browse files Browse the repository at this point in the history
Update the log ticket reservation type printing code to reflect
all the types of log tickets, to avoid incorrect debug output and
avoid running off the end of the array.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Darrick J. Wong authored and Dave Chinner committed Jan 4, 2016
1 parent 2e9101d commit 9b434a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fs/xfs/xfs_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -2045,12 +2045,14 @@ xlog_print_tic_res(
"QM_DQCLUSTER",
"QM_QINOCREATE",
"QM_QUOTAOFF_END",
"SB_UNIT",
"FSYNC_TS",
"GROWFSRT_ALLOC",
"GROWFSRT_ZERO",
"GROWFSRT_FREE",
"SWAPEXT"
"SWAPEXT",
"CHECKPOINT",
"ICREATE",
"CREATE_TMPFILE"
};

xfs_warn(mp, "xlog_write: reservation summary:");
Expand Down

0 comments on commit 9b434a3

Please sign in to comment.