From: Darrick J. Wong Date: Tue, 21 Apr 2020 21:16:52 +0000 (-0700) Subject: xfs: report unrecognized log item type codes during recovery X-Git-Tag: v5.8-rc1~185^2~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d2d35a33ea77f34d534106e0b18a5797d3bbcf7;p=thirdparty%2Fkernel%2Flinux.git xfs: report unrecognized log item type codes during recovery When we're sorting recovered log items ahead of recovering them and encounter a log item of unknown type, actually print the type code when we're rejecting the whole transaction to aid in debugging. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 11c3502b07b13..5f803083ddc30 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -1887,8 +1887,8 @@ xlog_recover_reorder_trans( break; default: xfs_warn(log->l_mp, - "%s: unrecognized type of log operation", - __func__); + "%s: unrecognized type of log operation (%d)", + __func__, ITEM_TYPE(item)); ASSERT(0); /* * return the remaining items back to the transaction