“d56f3af9e801970d21c57621de3b42bc17eac152”上不存在“arch/openrisc/git@gitcode.net:openanolis/cloud-kernel.git”
提交 c06ad17c 编写于 作者: D Darrick J. Wong

xfs: shorten the shutdown messages to a single line

Consolidate the shutdown messages to a single line containing the
reason, the passed-in flags, the source of the shutdown, and the end
result.  This means we now only have one line to look for when
debugging, which is useful when the fs goes down while something else is
flooding dmesg.
Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Reviewed-by: NChandan Babu R <chandanrlinux@gmail.com>
上级 3a1c3abe
...@@ -538,25 +538,25 @@ xfs_do_force_shutdown( ...@@ -538,25 +538,25 @@ xfs_do_force_shutdown(
if (flags & SHUTDOWN_FORCE_UMOUNT) { if (flags & SHUTDOWN_FORCE_UMOUNT) {
xfs_alert(mp, xfs_alert(mp,
"User initiated shutdown received. Shutting down filesystem"); "User initiated shutdown (0x%x) received. Shutting down filesystem",
flags);
return; return;
} }
xfs_notice(mp,
"%s(0x%x) called from line %d of file %s. Return address = %pS",
__func__, flags, lnnum, fname, __return_address);
if (flags & SHUTDOWN_CORRUPT_INCORE) { if (flags & SHUTDOWN_CORRUPT_INCORE) {
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_CORRUPT, xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_CORRUPT,
"Corruption of in-memory data detected. Shutting down filesystem"); "Corruption of in-memory data (0x%x) detected at %pS (%s:%d). Shutting down filesystem",
flags, __return_address, fname, lnnum);
if (XFS_ERRLEVEL_HIGH <= xfs_error_level) if (XFS_ERRLEVEL_HIGH <= xfs_error_level)
xfs_stack_trace(); xfs_stack_trace();
} else if (logerror) { } else if (logerror) {
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_LOGERROR, xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_LOGERROR,
"Log I/O Error Detected. Shutting down filesystem"); "Log I/O error (0x%x) detected at %pS (%s:%d). Shutting down filesystem",
flags, __return_address, fname, lnnum);
} else { } else {
xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR, xfs_alert_tag(mp, XFS_PTAG_SHUTDOWN_IOERROR,
"I/O Error Detected. Shutting down filesystem"); "I/O error (0x%x) detected at %pS (%s:%d). Shutting down filesystem",
flags, __return_address, fname, lnnum);
} }
xfs_alert(mp, xfs_alert(mp,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册